On 12-Oct-06, at 4:53 PM, Ronald Vogelaar wrote:

As my last contribution to this thread today, I just did what could have answered my question about extends in the first place. I did some timing on using the simple extend that replaces i=i+1 with i.Incr. It turns out that using i.Incr takes just over three times as long to execute as i=i+1 (on Windows).

This is of course only of importance when used in a loop that calls the function millions of times. And even then is the time needed to execute so incredibly short that difference in execution time basically still means nothing.

For some apps you can see improvements by reducing function calls in the order of thousands or even just hundreds, never mind millions. I've seen real-world measurable speed ups by manually inlining methods and otherwise reducing function calls by using pointers. I mean "seen" literally, saving just a few milliseconds per frame in a game really adds up for example - even a seemingly modest 10FPS jump can turn an unplayable game into an enjoyable experience.

Frank.
<http://developer.chaoticbox.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