Posted by The Natural Philosopher on 01/09/08 09:01
jodleren wrote:
> Hi!
>
> I have a system, which reads in the entire tree - all files. As of
> now, there are 1312 folders to read.
>
> 1st time it takes 53-60 seconds to read. The data is somehow cached,
> 2nd time time is takes 2-3 seconds.
>
> Is there a way to "cache" data beforehand? Like "preparing" the
> directory....?
>
Before what? Before you read them?
Bit of a logical impasse there ;-)
If its *nix, you might execute a cron script every few minutes and read
the whole directory structure, which will bring it into the disk file cache.
Of course under heavy I/O load that caching may get flushed again..
> WBR
> Sonnich
[Back to original message]
|