Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow string processing.
Message
From
14/06/1999 19:40:05
 
 
To
14/06/1999 19:19:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00229755
Message ID:
00229783
Views:
25
Thanks for the input Perry,

I had originally written the code to make more extensive use of Fox's built in string manipulation functions, but the ambiguous nature of this data format makes it difficult to use the AT() and SUBSTR() functions effectively. The problem is that either "~" or "|" can be a delimeter, but can also appear in the data as an escaped character - "/~" or "/|".

An example of a key name and data chunk would be "|FIRSTNAME~MATT|". But "|FIRSTNAME~MA/|TT" is also valid.

So you can see my problems with using AT() and SUBSTR() to find the delimiters.

Aside from all that, can Foxpro not step through a large character string efficiently? Processing a 15k string takes 25 seconds (on a pretty slow machine). Doing the same in Java takes <1 second, and Java ain't no speed demon either.

In any case, I'm considering doing what you recommend and putting some more AT's and SUBSTR's.

Thanks again.

Matt
Previous
Reply
Map
View

Click here to load this message in the networking platform