Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.exe or .app or .fxp faster?
Message
De
14/09/1999 11:12:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00264432
Message ID:
00264476
Vues:
23
I tried to take it one better... In the program that makes the procedure calls, I included the procedures. Is this faster than your reccomendation?

ie,

* main.prg
do get_master
do get_groups
do get_education
return

procedure get_master
* get master code is in here
return

procedure get_groups
* get groups code is in here
return

procedure get_education
* get education code is in here
return

* eof main.prg

>Hi Todd,
>
>Just a thought that might help here. If you're using a number of function calls to PRGs, you might consider consolidating them into a single procedure file. By using SET PROCEDURE you can force the procedures and functions to load before entering the main body of calculations. This should (I think) keep them in the program buffer, so you won't have any additional file I/O load time, in the instance of a procedure or function being dumped from the buffer. In this case, using a procedure file would have some benefits over creating a custom non-visual class in that the calls won't have to be resolved within the class.
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform