This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]