GetDetailsOf Efficiency
-
Hello Friends, I'm developing an application that reads file properties and stores them in a MS-Access database. I need to know, what would be more efficient in terms of speed, the GetDetailsOf method or the FileInfo and DirectoryInfo classes.
-
Hello Friends, I'm developing an application that reads file properties and stores them in a MS-Access database. I need to know, what would be more efficient in terms of speed, the GetDetailsOf method or the FileInfo and DirectoryInfo classes.
Test them both and see. Write the two methods of reading the file properties Write a loop that repeats the file reading (say 1000) times. You need to do it lots of times because generally just doing it once will be so fast you can't time it accurately. Use a
System.Diagnostics.Stopwatch
to time the loop. Repeat for both types of file read.Simon
-
Hello Friends, I'm developing an application that reads file properties and stores them in a MS-Access database. I need to know, what would be more efficient in terms of speed, the GetDetailsOf method or the FileInfo and DirectoryInfo classes.