Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow detection of absent UNC
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01269426
Message ID:
01269520
Views:
20
>It seems to make a difference which one you do first. If I do the DIRECTORY() first, it takes 6.75 seconds to fail and the Scripting object takes .003 seconds to fail. If I do the Scripting object first, it takes 4.5 seconds to fail and DIRECTORY() take .001.
>
>So overall, you're right, it doesn't really speed it up that much. Windows must be caching the access. If I wait about 10 seconds between the tries, they both take their respective times to fail, so the Scripting object is faster, it's just not instant.

Oh, crap. I should've tested the order. Sorry Peter
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform