[OT] RE: counter++ versus "add 1 to counter"

Mark Wieder mwieder at ahsoftware.net
Thu Mar 25 00:27:42 EST 2004


Monte-

Wednesday, March 24, 2004, 8:11:27 PM, you wrote:

MG> Rev was only 7 times slower in the tests we did. It was a simple adder in a
MG> repeat loop. He was very impressed and said he would download rev. I think

Seven time slower is very impressive, considering that most modern C++
compilers will optimize an addition repeat loop to a handful of
machine code instructions in a tight loop, and probably try to keep
loop counters in registers as well.

-- 
-Mark Wieder
 mwieder at ahsoftware.net



More information about the use-livecode mailing list