Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-10-06 16:15:58


Gregory Colvin wrote:

[...]

>> There is no graph scanning, everything works instantaneously,
>> reasonnably
>> fast and:
>>
>> - sizeof("indicator") == sizeof(long)
>> - sizeof(shifted_ptr<T, root_collector>) == sizeof(void *) * 2
>
> That is the same size as shared_ptr. So why not put the effort into
> a garbage collecting allocator for shared_ptr?

It is the same size but it is still twice faster, the memory map is not
fragmented, destructors will be called on time (not obvious) & it is not
requiring too much extra memory. It is a better overall, I would like it to
be benchmarked

[...]

Philippe


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