Re: Resource use reading from file system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2006-02-05 at 14:49, Brian Dunning wrote:
> I built a quick & dirty photo gallery that reads the file system to  
> display filenames of all the images in each folder. As traffic  
> increases, will it save system resources if I have a cron job write  
> include files with the contents of each folder? Is the processor  
> taxed much more to read ~10 files from a folder, than to read a  
> single include file? I know it's less, but I wonder if the difference  
> is really all that significant.

It depend son how often those files are accessed. The OS usually
performs some kind of caching itself so that the overhead is minimized.
Either way it doesn't sound like a particularly good point for
optimization.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux