More accurately, it's 20.6% faster.

Ronald Vogelaar
http://www.rovosoft.com

----- Original Message ----- From: "Ronald Vogelaar" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Friday, October 13, 2006 9:40 AM
Subject: Faster than i=i+1


Funny thing... while breaking my head over a counter incrementer that wouldn't suffer from overhead of a function call, while still being faster than peforming i=i+1, I found out that using

i = i - - 1

is actually about 10% faster (on Windows) than

i = i + 1

Is that weird or what?

Ronald Vogelaar
http://www.rovosoft.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

__________ NOD32 1.1801 (20061012) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to