Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speed: Methods vs. External Functions?
Message
 
À
07/05/1997 13:22:14
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:
00031183
Vues:
48
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?



>>>Ack, external functions are actually _faster_ than methods? Can anyone >confirm this?
>>
>>I just did a test that simply called each of a method, fucntion in proc file and prg function. The functions return .t.. I called them 10,000 times each and the times ( for 10,000 calls) were;
>>
>> Method 0.6 Avg
>> Procedure file func 0.2 avg
>> PRG func 0.2 avg
>>
>>I would conclude that although there is a difference between the calling of methods vs procs, it is insignificant as it is less than 0.4 seconds for 10,000 calls.
>>
>>JimBooth
>
>Almost half a second is insignificant?
>
>My experience is that users start complaining when app processes take more than a few seconds. (They're used to word-processors [s]). Call a number of functions repeatedly and that half second adds up quick.

Michael G. Emmons
memmons@nc.rr.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform