Performance issue with COW strings?
Dan Kegel
dank@kegel.com
Sat Jun 4 06:39:00 GMT 2005
I'm trying to migrate an app from gcc-2.95.3 + SGI STL
to gcc-3.4.3 (or gcc-4.0.0) with libstdc++. It's going fine except for
some performance problems; gcc-2.95.3 + SGI STL is
just plain faster than any modern pure gcc, as far
as this app is concerned. The app is multithreaded,
and uses std::string, so I can't help but wonder
whether the COW string 'optimization' might be
playing a part.
So, I'd like to try benchmarking my app with & without COX strings.
Is there a patch handy for libstdc++
to replace COW strings with deep-copy strings?
For the purpose of this test, I don't care about
compatibility, so it's ok if I can't mix code
compiled with this patch with code compiled with
a stock libstdc++.
Thanks!
- Dan
--
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
More information about the Libstdc++
mailing list