This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Slowness from thread-safe shared_ptr
- From: "Chris Jefferson" <chris at bubblescope dot net>
- To: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 6 Nov 2007 14:45:05 +0000
- Subject: Slowness from thread-safe shared_ptr
I recently mapped some code from my own implementation of shared_ptr
to the tr1 implementation, and found a quite disappointing level of
slowdown (~15%). Profiling seems to show this is entirely down to the
thread-safeness of shared_ptr. As I don't use threads, this is a bit
annoying. Is there a general way of turning off the thread safety, or
should I have to keep a separate stripped copy?
Chris