On 8/31/2013 1:06 PM, Phil Bouchard wrote:
On 8/31/2013 11:24 AM, Phil Bouchard wrote:
Thanks. But I must also say the object allocator could be speed up because at the time I wrote this there was no way to allocate consecutive bytes from a pool in constant complexity. I am still using fast_pool_allocator
: https://svn.boost.org/svn/boost/sandbox/block_ptr/boost/block_ptr.hpp That's one more improvement that can be done and it'll be perfect.
Sorry I didn't mean this allocator but boost::singleton_pool
: https://svn.boost.org/svn/boost/sandbox/block_ptr/boost/detail/block_base.hp...
One more improvement that could also be done would be to make the global mutex static_mutex() "set" oriented: https://svn.boost.org/svn/boost/sandbox/block_ptr/boost/block_ptr.hpp This way modifications to a "set" could be made per thread; i.e. a "set" would be thread independent from each other. But this is not trivial unless we work together on this. -Phil