Re: Performance problem with php

From: Date: Wed, 23 Jun 2010 11:39:24 +0000
Subject: Re: Performance problem with php
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-48950@lists.php.net to get a copy of this message
Many thanks to everybody helped me. I will follow your suggestions and check it. Best regards, Vincenzo On Mon, Jun 21, 2010 at 9:39 PM, Stas Malyshev <smalyshev@sugarcrm.com>wrote: > Hi! > > > could anybody tell me why also for every single php file engine must lstat >> all path? >> Why php engine don't simply try to open directly the file? >> > > There are some places where PHP engine has to know "true" name of the file > - i.e. filename that would be the same for each file regardless of how it is > accessed - through relative path, symlinks, etc. Example can be > {include|require}_once. For that, it needs to figure out the whole path. It > is done only once per file, then cached. If you seeing it on repeated runs > in the same process, increase your realpath cache size (yes, the default is > way too small for any big app). > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > -- Vincenzo D'Amore email: v.damore@gmail.com msn: freedev@hotmail.com skype: free.dev mobile: +39 349 8513251

« previous php.internals (#48950) next »