Stanislav Malyshev wrote:
Hi!

1) check for namespaced\classname
2) try to autoload namespaced\classname
3) check for internal classname

That's the wrong way to do it - it means every time you mention the internal class name without prefixing it with \ you get exhaustive autoloading search and nothing tells you about it but sudden performance drop in your application.

I agree with Stas. It's better to force people to actually reference their classes/functions/constants correctly and get better performance than getting unclear slowdowns.

On a side note, congratulations for identifying and addressing the issues with namespaces before the release. Changing the separator was a hard but wise decision. There's no perfect choice but it was best of all IMO.

-- Rodrigo Saboya

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

Reply via email to