Reply to Re: speeding up reading opendir...

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация