Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Single occurrence in a string
Message
From
30/03/2015 09:07:21
Walter Meester
HoogkarspelNetherlands
 
 
To
30/03/2015 08:09:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01617326
Message ID:
01617390
Views:
65
>Marcia used 13 lines of code, I 7. Marcia, used only 1 string to do the work. I used 2. Performance difference, 2 orders of magnitude.
>
>Not that this really matters in this example, but fewer lines of code doesn't not necessarily mean better performance. Andy has presented several conference sessions over the years on optimizing VFP and has plenty of examples to support this.

Marcia,

I agree with that. It was only in the response to John claiming that your and my solution were almost identical.
OTOH, more often than not shorter code is faster, but more importantly, better maintainable.

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform