On Sat, 24 Apr 2004, Jason Garber wrote:
> If each file_exists() call uses one or more stats, then I must say that a
> stat is a very quick operation.

It's all relative.  Like we stated earlier, most PHP users really couldn't
care less about stat overhead.  It also depends on your operating system
and even your cpu.  And finally it just depends on how anal you are.  In
your architecture if you were to do an strace and list all the stat calls
done on a single request you will find the same path stat'ed over and over
and over and to some of us that just grates on our esthetic sense to the
point where we feel compelled to address it.

It's a bit like connecting to a MySQL server 50 times on every request.
Sure the operation is fast, but if you could get rid of 49 of those
connections why wouldn't you?

-Rasmus

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to