Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2166 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90501 invoked from network); 4 Jun 2003 17:27:29 -0000 Received: from unknown (HELO lt1.firehawksystems.com) (64.71.143.247) by pb1.pair.com with SMTP; 4 Jun 2003 17:27:29 -0000 Received: from wireless-laptop.firehawksystems.com (adsl-64-169-129-87.dsl.sktn01.pacbell.net [64.169.129.87]) (authenticated (0 bits)) by lt1.firehawksystems.com (8.11.6p2/8.11.6) with ESMTP id h54HRDK19816 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO); Wed, 4 Jun 2003 10:27:17 -0700 Date: Wed, 4 Jun 2003 10:27:12 -0700 To: ilia@prohost.org Cc: Rasmus Lerdorf , Jeff Moore , internals@lists.php.net Message-ID: <20030604102712002693.GyazMail.list@firehawksystems.com> In-Reply-To: <200306041327.14883.ilia@prohost.org> References: <200306041327.14883.ilia@prohost.org> Mime-Version: 1.0 (GMessage framework 0.9.9.9.4) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: GyazMail version 0.9.9.9.4 Subject: Re: [PHP-DEV] Benchmarking 4.3.2 vs 4.1.2 From: list@firehawksystems.com ("Brian J. France") 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>