|
Boost : |
From: Joe Gottman (jgottman_at_[hidden])
Date: 2003-11-15 20:34:35
"Matthew Wilson" <stlsoft_at_[hidden]> wrote in message
news:bp6in3$2ll$1_at_sea.gmane.org...
>
> "Joe Gottman" <jgottman_at_[hidden]> wrote in message
> news:bp42l6$kia$1_at_sea.gmane.org...
> >
> > "Matthew Wilson" <stlsoft_at_[hidden]> wrote in message
> > news:bovl1d$juh$1_at_sea.gmane.org...
> > > Hi Boosters
> > >
> > > I'm just doing some research on reference-counting, and contrasting
> > > self-counting types with externally counted types, the latter effected
> > with
> > > the rather excellent shared pointer technique.
> > >
>
> > Have you tried getting the latest shared_ptr.hpp and
> > detail/shared_count.hpp from the CVS files? The version of shared_ptr
in
> > release 1.30.2 has a lot of extra overhead due to weak_ptr support.
> Every
> > time a shared_ptr is copied there is an extra comparison and increment
> (and
> > later an extra decrement). The version in the CVS avoids almost all of
> this
> > extra work.
>
> I've not. That sounds worth trying.
>
> <blush>How would one go about getting the CVS version</blush>
>
The web address for the boost CVS files is
http://cvs.sourceforge.net/viewcvs.py/boost/boost/
The new shared_ptr.hpp is at
http://cvs.sourceforge.net/viewcvs.py/boost/boost/boost/shared_ptr.hpp
and the detail/shared_count.hpp is at
http://cvs.sourceforge.net/viewcvs.py/boost/boost/boost/detail/shared_count.hpp
Joe Gottman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk