
David Abrahams <dave@boost-consulting.com> writes:
Now, here's the interesting thing: If you change the needless postincrement you're using into preincrement, you get:
GCC 3.4.4: Test 1 discarded
Test 2 with operator library: 1.485 with iterator library: 1.453
Test 3 with operator library: 1.437 with iterator library: 1.453
When I do the same to your test (slightly modified; see enclosed) I get: MSVC-6.0 using iterator lib: ---- using iterator lib: 8.812 using iterator lib: 8.797 using operator lib: ----- using operator lib: 5.688 using operator lib: 5.703 GCC-3.4.4 using operator lib: ----- using operator lib: 4.844 using operator lib: 4.859 using iterator lib: ---- using iterator lib: 4.86 using iterator lib: 4.875 So it looks like the penalty is elsewhere for vc6 -- Dave Abrahams Boost Consulting www.boost-consulting.com