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




_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to