|
Boost : |
Subject: Re: [boost] [Block Pointer] Up to 600% faster than Shared Pointer
From: Phil Bouchard (philippeb8_at_[hidden])
Date: 2016-03-12 21:08:23
On 03/11/2016 09:38 PM, Phil Bouchard wrote:
>
> - Once again all the examples can be found here:
> https://github.com/philippeb8/block_ptr/tree/master/example
>
>
> - And the pointer itself here:
> https://github.com/philippeb8/block_ptr/blob/master/include/boost/smart_ptr/block_ptr.hpp
I just did a heavy code cleanup and I took the stack / heap detection
code out because it is now based on explicit proxies.
Also block_ptr<> is now distinct from the allocator used.
Finally the class fastblock<> is properly abstracted and it is easy to
add user defined block types just like this one:
template <typename T>
class fastblock : public block<T, fast_pool_allocator<T> >
{
public:
typedef block<T, fast_pool_allocator<T> > base;
fastblock() : base()
{
}
[...]
};
Regards,
-Phil
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk