Re: Reducing the number of system calls for includes

From: Date: Sat, 25 Jan 2003 10:40:23 +0000
Subject: Re: Reducing the number of system calls for includes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-93671@lists.php.net to get a copy of this message
> The question here is whether it's worthwhile to optimize for > the case where you have 30+ includes per page. Is it that > common? In my particular case just 2 or 3 includes puts me over the top actually. stat() is amazingly slow on freebsd and having 3 includes of files in a directory 8 levels below the root is going to do 27 stat()'s. 27 stats on my freebsd box here takes 24ms to execute. That's a long time to be sitting around stat'ing things. And heaven help me if the path is not absolute and I have to try different include paths. And if open_basedir is also enabled you might as well go for a coffee while you wait through some 80+ syscalls for every include. -Rasmus

« previous php.dev (#93671) next »