Performance of basic_string

I have an app that has several (up to 128) threads, every thread dealing with one serial port. I use different DLLs for providing some transfer-protokolls. The DLLs I've written used plain C-Strings. Now I'm writing a new DLL, and I want to use the basic_string from the standard library. Does anyone know the performance-behavor of this class, especially for the multi-threading aspect (or any ressource where I can find this information?). I'm using VC++ 6.0 SP3.
Who is Participating?
nietodConnect With a Mentor Commented:
The STL string class should be very efficient for you.  The class uses reference counted string buffers which eliminates unnecessary copying of the string information.  The multithreaded version of this is slightly slower---though in any real applucation, imeasurably slower--as it must use interlocked operations to manipulate the reference counts.  These interlocked operarations take an extra clock cycle or two, but that really won't affect you.
ashman061699Author Commented:
Thanx, nietod.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.