Questions tagged [boost-pool]

Boost Pool Library provides a memory allocation scheme that is very fast (but limited in its usage)

Pools are generally used when there is a lot of allocation and deallocation of small objects.

  • boost::pool_allocator is a more general-purpose solution, geared towards efficiently servicing requests for any number of contiguous chunks.

  • boost::fast_pool_allocator is also a general-purpose solution but is geared towards efficiently servicing requests for one chunk at a time; it will work for contiguous chunks, but not as well as pool_allocator.

Further details: http://www.boost.org/doc/libs/1_58_0/libs/pool/doc/html/index.html

32 questions
0
votes
1 answer

boost::pool real memory allocations

I'm trying to use the boost::pool memory pool from #include "boost/pool/pool.hpp". I want to check how much memory is allocated with boost::pool so I run the command system("ps aux | grep myProgramExe | grep -v grep | awk '{print $5}'"); which…
hudac
  • 2,584
  • 6
  • 34
  • 57
0
votes
2 answers

boost::pool_allocator needs eight static libraries?

I tried to add to my project rather limited functionality from the Boost library, namely allocating memory for small objects from a pool with the help of the 'pool_allocator' class, and discovered that I need to add to the project dependendencies to…
Al Berger
  • 1,048
  • 14
  • 35
1 2
3