阅读背景:

定制malloc用于许多小型固定大小的块?

来源:互联网 

I need to allocate, and free lots of fixed size, small (16 byte) blocks of memory, in no fixed order. I could just call malloc and free for each, but that will probably be very inefficient. A better solution probably would be to call malloc and free for larger blocks, and handle the allocation within those blocks itself.I need to allocate, and free lots of fixed size




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: