Boost logo

Boost :

Subject: Re: [boost] [block_ptr] & Java
From: Phil Bouchard (philippe_at_[hidden])
Date: 2013-09-03 16:47:45


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<block_header>:
>> 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<pool,
> sizeof(char)>:
> https://svn.boost.org/svn/boost/sandbox/block_ptr/boost/detail/block_base.hpp

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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk