
30 Jan
2006
30 Jan
'06
7:33 p.m.
David Maisonave wrote:
On my test, reference-link is over 25% faster than reference-count logic for initialization.
This only matters if the only thing you do is initialize. This is best-case scenario for reference-linked for both performance and memory use. How often is that the case in real code? Then there are thread safety, custom deleters, weak_ptr support, enable_shared_from_this, and competition from intrusive_ptr on the low end, which should be even faster in ST mode.