Re: lstat call on each directory level

From: Date: Tue, 15 Jul 2008 19:44:25 +0000
Subject: Re: lstat call on each directory level
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-38987@lists.php.net to get a copy of this message
On Jul 15, 2008, at 2:25 PM, Rasmus Lerdorf wrote:
Well, it is used in other places too, like in figuring out _once paths. Including the same file using different paths still needs to be caught. Are you calling clearstatcache() manually anywhere? That blows away the entire realpath cache and completely destroys your performance, so you will want to avoid doing that very often.
Based on what I've seen, if the realpath cache gets filled it just quits caching rather than pruning. That seemed odd to me. There was also an issue that Dmitry had fixed in 5.3 a month or so ago where it was caching false finds and filling the cache up more quickly than necessary. I found this out through a quick extension I wrote to view the contents of the realpath cache. If anyone wants to clean this up for inclusion in the core, I'd be more than happy to have it there. You can grab a copy from my Git server: git://git.domain51.com/php.realpath.git -T

« previous php.internals (#38987) next »