Boost logo

Boost :

From: Bohdan (warever_at_[hidden])
Date: 2002-11-09 11:31:47


I just compared allocation speed for std::allocator and
boost::fast_pool_allocator:

VC7:
     boost::fast_pool_allocator is 8.5 times faster.

BCC32 5.5.1 :
     boost::fast_pool_allocator is 1.25 times faster.

Can anybody shed light on why fast_pool_allocator benefit ratio is so different
for different compilers ?

<code>
struct simple
{
 int m_x;
 double m_f;
};

...

AllocatorT a;
const int N = 20000000;
for( int i=N; i; --i )
{
  a.deallocate( a.allocate(1), 1 );
}

<\code>

BTW, Is pool library supported now ?

regards,
bohdan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk