Boost logo

Boost :

Subject: [boost] [Block Pointer] benchmark
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-05-24 18:40:38


Just for the records I have benchmarked block_ptr using:

And I get the following:
auto_ptr: 9208870 ns
shared_ptr: 22958516 ns
block_ptr: 75860365 ns

Which is pretty good given the complexity it goes thru.

I was wondering if there is any hope in having a pool::ordered_malloc()
call of O(1) instead of O(n) and a faster pool::is_from()? The latter
could be just a check to see if a pointer is within reserved memory
pages of the pool. I tried to talk to the author of pool but I got no


Boost list run by bdawes at, gregod at, cpdaniel at, john at