I've played with boost::pool a few times in places where it seemed to me I was seriously hammering the heap with a lot of object "churn". Generally I've used boost::object_pool
, or boost::pool_alloc
as an STL template parameter. However the result is invariably that performance is virtually unchanged, or significantly worsened.
I'm curious to hear of any success stories with it.
What sort of things should I look for in profiling output which might indicate boost::pool is likely to help ?
Is it just actually pretty hard to improve on good old malloc ?