Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String parsing performance issue
Message
 
 
To
18/05/2001 18:23:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00508983
Message ID:
00509042
Views:
24
>>>A lot of my ideas get shot down by my betters........but that's how I learn.
>>>
>>>My idea on this one is something on the order of
>>>
>>>LongString = STRTRAN(LongString,Delimiter,CHR(13)+CHR(10))
>>>N = ALINES(aMyArray,LongString)
>>>FOR I = 1 TO N
>>>    ParseRoutine(aMyArray[I])
>>>ENDFOR
>>>
>>
>>Your suggestion cut the parse time to less than half a second. Thx : )
>
>I've learned a lot from lurking here this past year and I'm glad I was able to use some of that to help.
>
>My very first stars!!!!!

Congrats, Rich!

If you would not suggest it, I would :) Too bad for me, I found this thread too late :) I learned this trick about 2 years ago. Also Cetin Basoz sent me his fll for parsing strings, which doesn't have array limitation (65000 elements).

I'll try to find this thread for the reference.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform