libstdc++-v3 std::string performance

peter.zijlstra@chello.nl peter.zijlstra@chello.nl
Wed Apr 25 06:06:00 GMT 2001


Hi,.

I have noticed a huge difference in execution time with a simple
text parsing program.

gcc-2.95.3 (-ggdb3 -pg) took about 30sec (50% profile overhead, 5% _memcpy)
gcc-3.0 (Apr 20 cvs, same options) took about 4min (15% profile overhead, 80% _memcpy)

Am I doing something wrong here, or is libstdc++-v3 std::string just not optimized? If so, is it possible to use the libstdc++ tree from the gcc-2.95.3 distro? Because I really need gcc-3.0, gcc-2.95.x gives me internal compiler errors ! :-(

regards,
	Peter Zijlstra



More information about the Gcc mailing list