Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make this code faster
Message
De
02/05/2013 16:23:47
 
 
À
02/05/2013 15:15:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01572484
Message ID:
01572553
Vues:
28
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.
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform