Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding Standards
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00115272
Message ID:
00115343
Views:
18
>
>2**20 _IS_ a smaller subset, it was 2**40 before invoking some theory :) But your point is on target, this current work is an math optimization problem. 2**20 is small potatoes in this league, in order to get publishable results I'm likely going up to 2**1000 or so, no small run-time (I think we're talking years here)...it will not be solvable without some major theoretical optimization, I think...

I won't even ask. I'll just chalk it up to "My tax dollars at work".:-)

>
>>I certainly don't mean to pick, my friend, but your example brings a question to mind. If speed is so essential there, why do you force the system to re-evaluate the terminating expression (2**20 or 2^20) every time through the loop. You gain more speed by:
>>lnlast = 2 ^ 20
>>FOR ncount = 1 TO lnlast
>>  * The same stuff here
>>ENDFOR
>
>Hey, nice tip...hadn't even occurred to me. That could add up to big savings...

It may especially in the run time environment (and with those numbers).
George

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

Click here to load this message in the networking platform