Re: File Searching, how to speed it up?



In article <x66dnXxpNeJZacXbnZ2dnUVZ_j2dnZ2d@xxxxxxxxxxxxx>, Janderson
wrote:
While I get a significant improvement when none of the directories 
change (its much faster to load a file with all the entries in it then 
to do a directory search).  In particular the first time the app loads 
up and has to search every file (around 100,000 and growing) which is 
painfully slow (2 or 3 minutes to start up the app).

What techniques/APIs can I use to speed up file searching?

Is your speed requirement such that you could take a bit longer on the
first search than on subsequent ones? If so, you could cache information
from the first search and use it for subsequent searches. This might
actually speed up your first search as it wouldn't require building a
complete cache before the first search.

Mike

.


Loading