IEnumerator Performance Issue

  • Thread starter Thread starter Glenn Leifheit
  • Start date Start date
G

Glenn Leifheit

I have as app that goes out and enumerates all of the directories and files
on a disk and brings back information on these. The application works fine
with the exception of when I enumerate the directories. The issue at hand
is that there are over 1,000,000 directories with about 100+ million files.
any suggestions?

Thanks

Glenn
 
* "Glenn Leifheit said:
I have as app that goes out and enumerates all of the directories and files
on a disk and brings back information on these. The application works fine
with the exception of when I enumerate the directories. The issue at hand
is that there are over 1,000,000 directories with about 100+ million files.
any suggestions?

Enumerating a lot of files will take some time... What's the problem?
 
Does the application display all the information at once? Or does the user
traverse a directory tree?

If it displays it all at once, then time to shift to displaying only one
level of the hierarchy at a time, and having the user drill down. Then
every time they drill down to a subdirectory, you go get the information
just for that directory.
 
Glenn,
Depending on what information you are retrieving have you considered using
multiple threads to "spread" the work around, at least get it out of the
main UI thread?

Hope this helps
Jay
 
Back
Top