ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Proven ptr<>
by Peter Dimov other posts by this author
Aug 10 2002 6:01PM messages near this date
[boost] Announce: TextFilt | [boost] Re: Re: Proven ptr<>
From: "Peter Dimov" <pdimov@[...].net> 
>  From: "Philippe A. Bouchard" <philippeb@[...].ca>
>  > Hi,
>  >
>  >     Here is the proof ptr<> is faster and requires a lot less memory
than
>  > shared_ptr<>.
>  >
>  >     The results speak from themselves:
>  > http://groups.yahoo.com/group/boost/files/ptr/
>  >
>  >     I know I don't take care of exceptions, but even with that the
numbers
>  > start doubling or quadrupling...
> 
>  Philippe, try using #define BOOST_DISABLE_THREADS to get a fair
comparison.
>  Looking at the times, I get the feeling that shared_ptr is using the
thread
>  safe path. Apologies if this is not the case.

Some more comments. Using <type_traits.h>  prevents ptr.h from working on
anything that doesn't use the SGI STL.

The implementation is pretty clever. I _think_ that the whole shared_ptr
spec can be implemented using your idea... if I were a standard library
implementor writing a std::shared_ptr I'd definitely consider using the
memory block header to store the data. :-)

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Peter Dimov
Philippe A. Bouchard
David B. Held
David Abrahams
Philippe A. Bouchard
Philippe A. Bouchard
Greg Colvin
David B. Held
Philippe A. Bouchard
David Abrahams
David Abrahams
Philippe A. Bouchard
David Abrahams
Philippe A. Bouchard
Philippe A. Bouchard
Philippe A. Bouchard
Greg Colvin
Philippe A. Bouchard
Greg Colvin
Greg Colvin

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved