Re: Keywords and Namesapces
- Posted by Vinoba Oct 08, 2011
- 40290 views
petelomax said...
I wasn't saying it does not work, I was saying it is unnecessarily slow.
I did not realize that compare, which is internally a subtraction by value nnn using a second argument is faster than decrement which is internally a subtraction by 1. I accept your statement.
petelomax said...
A quick experiment (this is Phix inline assembly):
Result is cmp:6s, dec: 8s, so the cmp does it in 75% of the time dec does. If you're really interested in finding out why, I'll have to refer you to Agner Fog.
Regards, Pete
I also accept the scientific proof thereof. If anything, I should apologize for presuming you did not understand the fundamentals of what I was suggesting.