Stanislav Malyshev wrote:
> Compile-time resolution means you don't get performance penalty for
> namespaces when you are not using it, and have very low costs when you
> do use it. Allowing blanket imports means we don't know what "new Foo()"
> means until it is executed - meaning we need to make extra lookups on
> each class fetch, even if the code doesn't use namespaces at all. That's
> only one problem with blanket imports.

And a fatal one in my book.  For the folks arguing so passionately about
this namespace implementation, try to consider the compiler vs. executor
issues involved.  We really need to stop the trend of pushing everything
down into the executor.

-Rasmus

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

Reply via email to