Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FILE() command slow
Message
De
12/08/2008 19:30:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
12/08/2008 18:00:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01338142
Message ID:
01338467
Vues:
13
>actually didn't get a chance to run the statistics, I didn't have time so just tried it live and it went MUCH faster, before that routine was taking around 10mins, now it's taking aboutn 10secs, huge difference. Thanks again for all your help.

Then what Tore said is probably the closest. Sys(2000) is just a wrapper for FindFile() (and sys(2000, ,1) is for FindNextFile() API call (forgot actual names, they can be found), but then so are all other ways for manipulating the file system. The File() function is obviously trying to be too smart, which makes it too slow for mass use. Sys(2000), OTOH, seems to be going straight for the system function - and at least as old as DOS 3.x function at that, i.e. one that didn't change much over the last twenty years. That's got to be fast.

Easy for me to be smart now that you got the results :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform