Information générale
Catégorie:
Codage, syntaxe et commandes
>>I too use a single file for each function/procedure -- I typically use the notation FUNCTION instead of PROCEDURE. But I go further -- in the file I explicitly define the function and the endfunc lines:
>
>There used to be a significant performance penalty for doing it that way. Here's what I said about it in HackFox:
>
>"But, if you're not careful, in versions through the original release of VFP 6, there's a nasty performance penalty for doing so. It turns out that having a PROCEDURE or FUNCTION statement at the beginning of a stand-alone PRG file increases the execution time by a factor of as much as 10!"
>
>But they seem to have cleaned that up in VFP6 SP3
I was unaware of this -- thank you. I have your book but missed that tip somewhere along the line or at least forgot about it. However, I am now using VFP9 SP2 only -- so I can be "fat-dumb-and-happy" :)
Précédent
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