Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40192 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16806 invoked from network); 31 Aug 2008 20:04:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2008 20:04:08 -0000 Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 208.83.222.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 208.83.222.18 unknown Linux 2.6 Received: from [208.83.222.18] ([208.83.222.18:50039] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/18-08838-739FAB84 for ; Sun, 31 Aug 2008 16:04:08 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 12C24C0EA42; Sun, 31 Aug 2008 13:03:32 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id A8A69C0EA40; Sun, 31 Aug 2008 13:03:31 -0700 (MST) Message-ID: <48BAF947.6060708@chiaraquartet.net> Date: Sun, 31 Aug 2008 15:04:23 -0500 User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Lukas Kahwe Smith CC: PHP Internals List References: <0E6B0C09-99C4-4843-A8E6-0B015EB98B4E@pooteeweet.org> In-Reply-To: <0E6B0C09-99C4-4843-A8E6-0B015EB98B4E@pooteeweet.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: namespace RFC From: greg@chiaraquartet.net (Gregory Beaver) Lukas Kahwe Smith wrote: > Hello all, > > All the recent discussions about namespaces, have left many of us > wondering if our implementation is rock solid or not. However the > discussions were not really well organized. This is why I am thankful > that Marcus and Felipe have spend the better part of this Sunday to > write an RFC [1] that hopefully summarizes all the key concerns. Also > they have created a patch that they feel addresses the concerns. > > So I ask you all to review the RFC and provide feedback. If you feel > something is missing, the best approach is probably to work with Marcus > and Felipe directly to get your concerns added. Only if there is a > difference of opinion in this process should this be brought to > internals. This way we can hopefully keep the discussion more focused on Hi, This is not a difference of opinion, but I would like to correct a misconception: phar does *not* solve the problem that prompts developers to concatenate files. The problem is that the loading/unloading of the scanner and parser can be significant overhead, and by cramming all code into a single file, can result in a 10%-30% performance improvement over code in separate files, even with an opcode cache. This has been verified independently by Zend labs (Stanislav can attest to this) on their machines. The performance difference depends on whether external code is loaded using require with absolute path, require_once with relative path, autoload, or some mix of these. The problem requires streamlining of the loading process for files, and could perhaps be addressed by attacking the bottleneck, but is not a trivial problem to solve. Just wanted to set the record straight. Thanks, Greg