Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can this code be faster?
Message
De
27/10/2003 11:20:03
Eric Sedlacek
TTSS Interactive Products
Rockville, Maryland, États-Unis
 
 
À
27/10/2003 09:36:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00842920
Message ID:
00842988
Vues:
16
Just another thought on this...

You said you could have 10,000 commands or more. If you double that and assume that each command is at the maximum size of 999 characters, that yields a data file under 20MB in size. While respectable, that is not a huge size for a text data file...and this is a maximum case scenario.

What you might want to try is taking a version of your processing code and comment out the CASE statement that actually processes the commands. Then choose a sample file and compare the time it takes to run with just reading in the data and with doing the full processing. It might give you some information on where your overhead is, reading the data, processing the data, or half-and-half. (Be sure to do each test with a freshly copied data file, so you know you aren't reading from a cache.) Then you know where to target your efficiency efforts.

Anyway, it's just a suggestion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform