Re: Reducing the number of system calls for includes
| From: | Sascha Schumann | Date: | Sat, 25 Jan 2003 00:12:05 +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-93647@lists.php.net to get a copy of this message | ||
> Well, take an app that has 30 includes in a directory 5 levels deep.
> Just the realpath() call is going to do 180 stats every time that script
> is hit. Not sure how that wouldn't show up on the radar regardless of the
> OS. You probably don't have anything that has 30 includes, but people out
> there write code like that.
How about writing a mini preprocessor for such cases which
does the interpolation step everytime a programmer updates a
source file? That would save way more cycles than killing
some fstat calls.
- Sascha