Not logged in, Join Here! or Log In Below:  
News Articles Search    

 Home / General Programming / Reference counting Account Manager
Archive Notice: This thread is old and no longer active. It is here for reference purposes. This thread was created on an older version of the flipcode forums, before the site closed in 2005. Please keep that in mind as you view this thread, as many of the topics and opinions may be outdated.

May 26, 2005, 05:21 PM

Can anybody recommend to me a smart pointer/reference counting library that they have experience of?
What kind of speed hit does using reference counting usually make?
Is there additional impact from using smart pointers with multithreading?
I've had a look at the Boost implementations but I'd just like any kind of opinion you guys might have to offer.

Chad Austin

May 26, 2005, 06:22 PM

I've used boost::shared_ptr and boost::intrusive_ptr with success. intrusive_ptr is more efficient than shared_ptr, and smaller to boot. :) I've never had a situation where using smart pointers is a significant performance hit. If it is, you can always go back to raw pointers for a bit. (Making sure the memory management is still correct, of course.)

Never done refcounting in multithreaded situations, sorry.

This thread contains 2 messages.
Hosting by Solid Eight Studios, maker of PhotoTangler Collage Maker.