Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48950 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46413 invoked from network); 23 Jun 2010 11:39:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2010 11:39:49 -0000 Authentication-Results: pb1.pair.com header.from=v.damore@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=v.damore@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: v.damore@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:48210] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/42-31698-382F12C4 for ; Wed, 23 Jun 2010 07:39:48 -0400 Received: by fxm4 with SMTP id 4so940191fxm.29 for ; Wed, 23 Jun 2010 04:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=8I/vsW+dAqslYUWXG4ezmQhsojxoJSsHyje/+b00fig=; b=TL0A/rmdcwy5hhYidrppsCZzxuu9qdkqwXSCyi6bdTE5FUBbswcbEiw/KgCVsiSm2+ CkJ6kdc+BoJ2Po+LG0RrAbSeD0ht53ukUHMlszbhmqv5/w1QWQ9lAguRAbqWKt3r2/Cq vw5olfnhWV9tZbqpU9pCMnBwuGltf7YgKQoUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=xwQ5AHc+tBCwHz1SQPRQygEAKAQw2lip4NsaXiudHuf1991ktfIO2IOk996tOurk7E 1VQa0obE7hqb2GnnZhQTG6RwR0dV7S6DzhjAcMVQvBhgEgzp6o+61BTJgbfzg3iVp73Y sLMligg9ucMd+7Sz3eYnBPEPM4TYrNerEwn+U= Received: by 10.239.189.140 with SMTP id t12mr512193hbh.172.1277293184201; Wed, 23 Jun 2010 04:39:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.186.10 with HTTP; Wed, 23 Jun 2010 04:39:24 -0700 (PDT) In-Reply-To: <4C1FBFFA.2070406@sugarcrm.com> References: <4C1DE819.2070406@daevel.fr> <4C1FBFFA.2070406@sugarcrm.com> Date: Wed, 23 Jun 2010 13:39:24 +0200 Message-ID: To: Stas Malyshev Cc: Internals Content-Type: multipart/alternative; boundary=001485f1e7a684b27b0489b0fe2d Subject: Re: [PHP-DEV] Performance problem with php From: v.damore@gmail.com ("Vincenzo D'Amore") --001485f1e7a684b27b0489b0fe2d Content-Type: text/plain; charset=UTF-8 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 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 --001485f1e7a684b27b0489b0fe2d--