
13 May
2009
13 May
'09
4:11 p.m.
Giovanni Piero Deretta: ...
for( int i = 0; i < N; ++i ) { m1 += test_strlen( "This is a test." ); }
Are you sure the compiler is not computing the len at compile time?
Good point. Yes, it actually was computing it at compile time. When I changed the test to use a literal in another TU, the sentinel iterator was indeed more efficient: 953 (3577225856); 703 (3577225856)