Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make this code faster
Message
From
02/05/2013 16:23:47
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
 
To
02/05/2013 15:15:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01572484
Message ID:
01572553
Views:
29
true. the single case comparison is slightly slower and if you can build a decision tree neraly balanced you get a nice reduction of comparisons - but even a few million case instead of if/else with only 3 decision points will not take too long even in laaaarge scans hitting nearly every record. As nothing was said about data localization, (vfp + XP network), lots of other thngs might become relevant if applicable: opening the tables exclusively speeds things up as well or locking the table - you know those weird corners also but I won't try to discuss those implications ;-)

>I believe IF /ELSE will be faster than CASE.
>
Previous
Reply
Map
View

Click here to load this message in the networking platform