Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this code be faster?
Message
From
27/10/2003 11:20:03
Eric Sedlacek
TTSS Interactive Products
Rockville, Maryland, United States
 
 
To
27/10/2003 09:36:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00842920
Message ID:
00842988
Views:
15
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform