6 Sep
2007
6 Sep
'07
5:16 a.m.
We use boost pool in our project and we found boost's pool may occupy too much memory. Say, if we need a block of memory which size is 1317B, boost's pool will allocate a truck of memory 5268B on a 32bits platform, leave 3951 bytes unused (it get worse on 64bits platform). I don't think it is necessary to allocate 5268B, for the sake of performance, only 1320B is enough for align. It should be resovled because pool is so important to many large application.