Re: Benchmarking 4.3.2 vs 4.1.2
| From: | George Schlossnagle | Date: | Mon, 09 Jun 2003 18:01:04 +0000 |
| Subject: | Re: Benchmarking 4.3.2 vs 4.1.2 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2257@lists.php.net to get a copy of this message | ||
On Monday, June 9, 2003, at 12:58 PM, Andi Gutmans wrote:
At 01:27 PM 6/4/2003 -0400, Ilia A. wrote:APC uses inode number, device number. I'm not sure if that is portable to win32 though. GeorgeHere is an analysis of the situation as it stands with PHP 4.3.3. As far as I can tell that even when opening files with the full path we do a lot of completely unnecessary work. We start from expand_filepath() which, gets called when opening a file. This function does a getcwd() everytime it is called even if path is full (/path/to/script.php), as far as I can tell completely useless syscal.Two different full paths can point to the same file and not using realpath() would break include_once() and require_once(). We might be able to use stat() information to compare the files but it would require some thinking.