Results 1 to 5 of 5

Thread: How fast

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Posts
    158

    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

  2. #2
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    My understanding is that APIs are usually faster. You might want to do a simple test on that.
    You just proved that sig advertisements work.

  3. #3
    Hyperactive Member
    Join Date
    Nov 2001
    Location
    Catalonia
    Posts
    397
    Tested over 5000 iterations in a PIII 350MHz

    Set fil = fso.GetFile("c:\bootlog.txt")
    '588 ms

    a = GetFileAttributes("c:\bootlog.txt")
    '497 ms
    Josep Mª

  4. #4
    PowerPoster eiSecure's Avatar
    Join Date
    Jul 2000
    Location
    Texas
    Posts
    2,209
    Just goes to prove Filburt's theory that FSO is evil.

  5. #5
    DaoK
    Guest
    1/10 sec more fast...






    wow it's only little evil

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width