Re: Keywords and Namesapces

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu