optimize the malloc in bit operation while src datas not so big