|
Boost Users : |
From: Cory Nelson (phrosty_at_[hidden])
Date: 2007-09-06 07:32:51
On 9/5/07, 蹬ä¸è½®ç <tricycle_at_[hidden]> wrote:
> 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.
pool allocates several blocks of memory at once, then divvies them
out. Nothing is wasted. Or did you have something else in mind?
-- Cory Nelson
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net