
12 Jun
2005
12 Jun
'05
6:12 p.m.
Victor A. Wagner Jr. wrote:
I'm still stunned that the range constructor is slower than Tom's loop. Substantially slower.
He used the profiler to time it - the input iterator's overhead is probably exagerated by the profiling code. Turn of profiling and turn up the optimization and the two versions should run at about the same speed.