Re: STL Slow - VS2005

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



In article <4ko804Fd38esU1@xxxxxxxxxxxxxx>, bop@xxxxxx says...

[ ... ]

for ( int i = 0 ; i < 100000000; ++ i ) {
s += " " ;

This one is especially funny, as a small change into

s += ' ';

makes it run *a lot* faster.

Yup.

What realistic application is doing a significant number of append
with single character string literals?

I can't say I remember have read or written too many of those...

--
Later,
Jerry.

The universe is a figment of its own imagination.
.