Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#DEFINE - Why?
Message
 
 
À
31/03/2008 17:35:10
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01306848
Message ID:
01307167
Vues:
13
>I wonder how much memory we are talking about though? 100k? We are only talking about values like "LOOK_AT_THIS_COOL_DEFINE" and stuff like that. Maybe it comes down to how memory is assigned and it does save a bunch, but I'm thinking it's not really that much.
>
Hard to say. Try this test:
#define CRLF chr(13)+chr(10)

local lcStr

for i=1 to 100000
  lcStr = CRLF
next

vs.

local lcCRLF, lcStr

lcCRLF = chr(13) + chr(10)
for i=1 to 100000
  lcStr = lcCRLF
next
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform