Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The other way around
Message
 
To
27/06/2000 14:28:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00385262
Message ID:
00385290
Views:
12
>Hmmm....I hadn't thought about that....In testing it is(!).
>
>A 1 to 1000000 loop is faster that 1000000 to 1. 3.30 seconds vs. 3.35....

I got inconsistent results with the same range. Sometimes the first was faster, sometimes the second. That why I said that I was mistaken. For a moment I thought that the loop difference may be the reason behind the other test, but resukts their were always consistent.

>
>>>
>>Going from the first character to the last in the loop rather than the last in the first. I thought, mistakenly as it turns out, that incrementing the loop positively (from 1 to n) would be faster than decrementing it (from n to 1). No ig deal.:-)
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform