7caced28c6
Motivation: For size from 512 bytes to chunkSize, we use a buddy algorithm. The drawback is that it has a large internal fragmentation. Modifications: 1. add SizeClassesMetric and SizeClasses 2. remove tiny size, now we have small, normal and huge size 3. rewrite the structure of PoolChunk 4. rewrite pooled allocate algorithm in PoolChunk 5. when allocate subpage, using lowest common multiple of pageSize and elemSize instead of pageSize. 6. add more tests in PooledByteBufAllocatorTest and PoolArenaTest Result: Reduce internal fragmentation and closes #3910 |
||
---|---|---|
.. | ||
src | ||
pom.xml |