Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41776 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38975 invoked from network); 8 Nov 2008 23:45:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2008 23:45:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 74.125.46.28 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 74.125.46.28 yw-out-2324.google.com Received: from [74.125.46.28] ([74.125.46.28:54259] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/1C-51173-8A426194 for ; Sat, 08 Nov 2008 18:45:45 -0500 Received: by yw-out-2324.google.com with SMTP id 5so697218ywb.83 for ; Sat, 08 Nov 2008 15:45:42 -0800 (PST) Received: by 10.64.151.14 with SMTP id y14mr5425927qbd.93.1226187941846; Sat, 08 Nov 2008 15:45:41 -0800 (PST) Received: from Greg-Beavers-monster.local ([76.84.4.101]) by mx.google.com with ESMTPS id k7sm8662738qba.3.2008.11.08.15.45.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 Nov 2008 15:45:40 -0800 (PST) Message-ID: <4909105C.4070604@chiaraquartet.net> Date: Wed, 29 Oct 2008 20:39:40 -0500 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Marshall Greenblatt CC: Stanislav Malyshev , internals@lists.php.net References: <49048EC1.9060908@chiaraquartet.net> <49061E01.8060503@zend.com> <11c607a60810271344i1a8cf53fl149447ad2f687f99@mail.gmail.com> <490628DB.9060209@zend.com> <11c607a60810271422l68949427pe31786275b0b152c@mail.gmail.com> <08747094-6B50-4A0D-9057-DFD12108B6C6@caedmon.net> <94CCB864-179A-48DA-A89A-3859796A9257@pooteeweet.org> <49063A1D.7070804@zend.com> <4906405F.7090205@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] namespace separator and whining From: greg@chiaraquartet.net (Greg Beaver) Marshall Greenblatt wrote: > Hi Stas, and All, > > I understand that there is a strong desire for this thread to be dead. > However, after reading this and all related threads and wiki, I find that > one item is still unclear, at least to me. > > On Mon, Oct 27, 2008 at 6:27 PM, Stanislav Malyshev wrote: >> And how exactly it serves the needs of people by secretly making their >> applications orders of magnitude slower, and then saying "oh, that's because >> you failed to read paragraph 16.4.5.1 in the manual, you should really >> read that paragraph before pretending to be PHP programmer!". Good >> environment or does what you want it to do, or fails, explaining to you why >> it doesn't work - it doesn't do it half way half broken and then blames you >> for not reading some obscure note in the manual. That's not how I see >> helping. > > > What, if any, performance penalty should we expect with the proposed > namespace changes when executing existing code that does not use > namespaces? Do we need to change existing namespace-free code in order to > avoid any potential performance penalties? Has anyone benchmarked the > changes yet to see if the performance penalty, if any, is actually > significant for some set of common usage cases? > > If it's too soon to answer that last question then perhaps the whole > performance debate is a bit premature. Existing code should see no change in performance from the previous PHP 5.3 alpha, and a significant improvement from PHP 5.2. In fact, code that uses a lot of static method calls or class constants might see a slight (imperceptible) performance increase, as a few hash lookups would be removed. I have not benchmarked this. Greg