Re: Benchmarking 4.3.2 vs 4.1.2
| From: | Brian J. France | Date: | Wed, 04 Jun 2003 17:27:12 +0000 |
| Subject: | Re: Benchmarking 4.3.2 vs 4.1.2 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2166@lists.php.net to get a copy of this message | ||
I believe those are from the realpath call. It splits the path and stats each
part to make sure it is real:
1) /
2) /home
3) /home/rei
4) /home/rei/PHP_CVS
5) /home/rei/PHP_CVS/STABLE
6) /home/rei/PHP_CVS/STABLE/php4
Brian
On Wed, 4 Jun 2003 13:27:14 -0400, Ilia A. wrote:
> Now, the interesting part, which I've yet to track down, are 6 lstat64()
> calls
> that occur between getcwd() (look above) and the actual open() for every
> file
> opened by PHP regardless of whether it had a full path or not.
> Here is strace bit:
>
> getcwd("/home/rei/PHP_CVS/STABLE/php4", 4096) = 30 <0.000011>
> lstat64(0xbfffad30, 0xbfffac90) = 0 <0.000015>
> lstat64(0xbfffad30, 0xbfffac90) = 0 <0.000008>
> lstat64(0xbfffad30, 0xbfffac90) = 0 <0.000008>
> lstat64(0xbfffad30, 0xbfffac90) = 0 <0.000008>
> lstat64(0xbfffad30, 0xbfffac90) = 0 <0.000008>
> lstat64(0xbfffad30, 0xbfffac90) = 0 <0.000009>