Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Single occurrence in a string
Message
De
30/03/2015 09:07:21
Walter Meester
HoogkarspelPays-Bas
 
 
À
30/03/2015 08:09:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01617326
Message ID:
01617390
Vues:
64
>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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform