Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling code in a Proc Lib is 20 times slower?
Message
De
09/01/2002 07:57:30
 
 
À
09/01/2002 03:59:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00602398
Message ID:
00602434
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>Someone has just told me there is a section in the Hackers guide that says calling functions in a procedure library is up to 20 times slower than just having them as programs in your app.
>
>Is this the case?

Your reporter misread or misunderstood. The issue is with issuing SET PROCEDURE over and over. Here's the relevant paragraph:

"SETting PROCEDURE TO the PRG, then calling the routine, speeds things up if you only have to do it once, but issuing SET PROCEDURE TO over and over again (as you'd need to for many different PRGs) is about 20 times slower than the slow way. That is, it's 200 times slower than omitting the header in the first place."

However, I have to add that we've seen some changes in behavior in VFP 7. I don't remember the details off the top of my head, but that section has been revised.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform