[Botan-devel] Why Pooling_Allocator?

Jack Lloyd lloyd at randombit.net
Fri Oct 14 18:31:38 EDT 2005


On Thu, Oct 13, 2005 at 03:43:11AM -0700, Nathaniel Smith wrote:

> Profiling showed that the problem was that our code was spending >96%
> of all CPU time in Pooling_Allocator::deallocate.  Unsurprisingly,
> swapping in a trivial allocator implementation that simply deferred to
> malloc() and free() gave a huge improvement in performance -- about a
> factor of 25x overall throughput.

Could you try the patch Matt posted to the list and see if that helps? I think
it probably will, but if it doesn't, I'll need to spend some time looking for
the other dragons.

-Jack



More information about the botan-devel mailing list