Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33656 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9747 invoked by uid 1010); 4 Dec 2007 17:19:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9717 invoked from network); 4 Dec 2007 17:19:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2007 17:19:33 -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 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:40853] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/61-27173-12C85574 for ; Tue, 04 Dec 2007 12:19:30 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 71BB6C0E959; Tue, 4 Dec 2007 10:19:26 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-15-179.neb.res.rr.com [76.84.15.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 18484C0E954; Tue, 4 Dec 2007 10:19:25 -0700 (MST) Message-ID: <47558C21.7040604@chiaraquartet.net> Date: Tue, 04 Dec 2007 11:19:29 -0600 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Martin Alterisio CC: internals Mailing List References: <4731278C.8020301@chiaraquartet.net> <52dbac0f0712040809v64da917cic9aa803f9800f49b@mail.gmail.com> <475580D5.1010903@chiaraquartet.net> <52dbac0f0712040900o5dc80b26keca60ef841843fd1@mail.gmail.com> In-Reply-To: <52dbac0f0712040900o5dc80b26keca60ef841843fd1@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] ignored patches From: greg@chiaraquartet.net (Gregory Beaver) Martin Alterisio wrote: > 2007/12/4, Gregory Beaver >: > > Martin Alterisio wrote: > > 1) Why is performance relevant to whether namespaces are > implemented one per > > file or many per file? > > Because there is a performance difference between code in separate > files > and the same code in a single file. > > [snip] > > > As I said to Roman: Sorry but that still doesn't answer my question. > That answer the question of "why use bundling?". Yes it does, perhaps you misunderstand the answer? Let me rephrase: because it is faster to bundle in some circumstances, and in some circumstances significantly faster than any other possible optimizations. > Also, what you exposed shows that the bundling process that you're > currently using needs to be updated to take in consideration the > inclusion of namespaces in PHP. see my reply to your other message. You're wrong, it's not possible to reliably bundle files containing namespace/import statements as currently implemented. > > > 2) I was under the impression namespaces were introduced to > improve code > > maintainability. Was I wrong? > > You are right. On the flip side, if you can't use your maintainable > code because it is slow as molasses, that is a problem. > > > If that's the case, and if it was my problem, I'll be facing two > possibilities: > 1) I've chosen the wrong language or platform for this app > 2) I did a really poor design of the app where I either never took > performance into consideration, or my performance estimates where > completely wrong. Sorry, your last statement does not add anything to the debate but noise. We are discussing the multiple namespaces per file patch. If you'd like to discuss which programming language to use or talk about hypothetical programming techniques, try php-general or IRC. Greg