Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FILE() command slow
Message
 
 
À
11/08/2008 16:23:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01338142
Message ID:
01338168
Vues:
12
>Yes, I'm gonna run both scenarios, just wanted to get a head start since preparing these scenarios and making the changes are a complicated process in itself but I'll try both.
>
>Thanks guys.

Hi Roy,

For your test case you don't need the changes in the original program. Just create 3 little programs like this

TestAdir.prg
local lnSeconds, lnI, llTest, lnTimeElapsed
local array laFiles[1]
lnSeconds = seconds()

for lnI = 1 to 1000
  llTest = (adir(laFiles, myFileInNetwork)>0)
next

lnTimeElapsed = seconds() - m.lnSeconds

* add loging of the lnTimeElapsed
Create similar programs for the other two cases and then run each of them separately in FPD re-sarting it each time.

Then compare the times.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform