Boost logo

Boost :

From: jsiek_at_[hidden]
Date: 2000-01-28 23:26:50

I'd be willing to bet this new linked implementation is faster in most
situations. Going to memory is getting slower and slower relative to
clock speeds, and the extra copying just gives the cpu something to do
instead of stalling :)

It would be interesting to see the performance difference in the
pathological case of doing nothing but a bunch of ptr assignments in a
tight loop.

Greg Colvin writes:
> A very interesting implementation. Its existence may be a good reason to
> deprecate the use_count() member of shared_ptr. I'm not too sure that
> you would see a 4X improvement in typical applications though, since your
> test does a lot of allocation and very little copying. I'd be interested
> in seeing the results of more thorough tests.

Boost list run by bdawes at, gregod at, cpdaniel at, john at