Re: STL Slow - VS2005
- From: Jerry Coffin <jcoffin@xxxxxxxxx>
- Date: Sat, 19 Aug 2006 18:54:15 -0600
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.
.
- References:
- Re: STL Slow - VS2005
- From: Carl Daniel [VC++ MVP]
- Re: STL Slow - VS2005
- From: WXS
- Re: STL Slow - VS2005
- From: Jerry Coffin
- Re: STL Slow - VS2005
- From: Bo Persson
- Re: STL Slow - VS2005
- Prev by Date: Re: STL Slow - VS2005
- Next by Date: Re: Maps
- Previous by thread: Re: STL Slow - VS2005
- Next by thread: Re: STL Slow - VS2005
- Index(es):