Re: Question about Namespace patch

From: Date: Mon, 23 Jul 2007 23:31:28 +0000
Subject: Re: Question about Namespace patch
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-31229@lists.php.net to get a copy of this message
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

« previous php.internals (#31229) next »