Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speed: Methods vs. External Functions?
Message
De
07/05/1997 15:07:36
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00030888
Message ID:
00031192
Vues:
54
>From a technical standpoint, how could calling an external function possibly be faster than using a function directly available to the form? Does anyone know how VFP compiles these two types of functions?
>

I think it has to do with inheritance and sequential searching. I hope I don't sound too much like an idiot expaining this. :-) And of course, I could be wrong...but here goes..

An external function is loaded into memory and foxpro 'knows' where to find it. Whereas a method of an object is 'buried' within the object reference. Foxpro needs more time to 'find' the method before it can run, particularly if it's an inherited method. I also believe that this means that the two types of functions run closer, performance wise, in an execuatble, since at that point, both types are compiled. Maybe Todd could clarify that...

Someone correct me if I'm missing the boat.
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform