-
How fast
Im writing something to run through a directory listing and I was wondering about performance, given the high number of iterations.
Which is faster, an api call such as GetFileAttributesA or the VB command to get the file size?
Anyone got any opinious?
Everso
-
My understanding is that APIs are usually faster. You might want to do a simple test on that.
-
Tested over 5000 iterations in a PIII 350MHz
Set fil = fso.GetFile("c:\bootlog.txt")
'588 ms
a = GetFileAttributes("c:\bootlog.txt")
'497 ms
-
Just goes to prove Filburt's theory that FSO is evil.:D
-
1/10 sec more fast...
:eek: wow it's only little evil