Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement