Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FILE() command slow
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01338142
Message ID:
01338168
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform