Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms slow in compiled app??
Message
De
01/07/2016 08:23:16
 
 
À
29/06/2016 13:01:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01637780
Message ID:
01637859
Vues:
102
Hi!

We've had same performance problems some yeas ago and we figured out that using .fxp is much faster than .prg.

Your Example:
loJob = NewObject("Job", "Job.prg")

changed to
loJob = NewObject("Job", "Job.fxp")

that did the job for us.

Now it would be interesting a 4. test Szenario for you and all of us ;)

>>>>I have a VFP9 app that runs against Sql Server. When I runs the forms from the FoxPro IDE, running against the same Sql Server database which is located on a central server down the hall (i.e. NOT on my local developer machine), all the forms load up and run very quickly.
>>>>
>>>>However, once compiled into an exe, and runnging the compiled exe from by same devloper box (outside of the FoxPro IDE), the forms take about twice as long to load up. This is very consistent across all forms.
>>>>
>>>>Is there particular reason that forms would run more quickly inside the FoxPro IDE than when compiled into an EXE?
>>>
>>>I FIGURED IT OUT!!!
>>>
>>>Remedy here: http://mattslay.com/foxpro-newobject-fast-here-slow-there/
>>
>>Just a swag... are you using SYS(2450,1) to indicate that resources should be searched within the executable first?
>>
>>Walter,
>
>Okay, I went back to the NewObject() way, and added your SYS(2450,1) suggested, and did careful, repetitive testing to be sure I cold report the correct results...
>
>Result: Using Sys(2450,1) along with NewObject() does help a little bit when running inside an exe, *BUT*, it is still slower than using SET PROCEDURE along with CreateObject().
>
>There are very distinctive and noticeable speed differences:
>
>
> 1st place: SET PROCEDURE + CreateObject() = 1.4 seconds
>
> 2nd place: Sys(2450,1) + NewObject() = 5 Seconds
>
> 3rd Place: NewObject() alone (leaving Sys(2450) at the default value of 0): 7.2 seconds
>
>
>.
Jörg Schneider
Joerg.Schneider@SMARTCRM.de
SMARTCRM CRM powered by MS Visual FoxPro
SMARTCRM GmbH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform