Re: File Searching, how to speed it up?
- From: janderson <com.gmail@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 28 May 2007 15:35:14 -0700
Mike Blake-Knox wrote:
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
I need to show all available files on startup in a listbox.
Cheers,
-Joel
.
- References:
- File Searching, how to speed it up?
- From: janderson
- Re: File Searching, how to speed it up?
- From: Mike Blake-Knox
- File Searching, how to speed it up?
- Prev by Date: Re: File Searching, how to speed it up?
- Next by Date: Re: Memory Problem
- Previous by thread: Re: File Searching, how to speed it up?
- Index(es):
Loading