Martin Alterisio wrote:
> 2007/12/4, Gregory Beaver <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>>:
>
>     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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to