Does using namespaces make a site faster or slower? That\'s what I would like to know.
If it helps improving site performance, then i would like to start using it ri
Namespace don't exist PHP-internally even as structure. Function and class names which are defined in a namespace will just have an identifier with an extra ASCII character within:
[1] => "namespace\user_func", // get_defined_functions()
When PHP looks up a function/class/constant name, it has to traverse the same hash table as for ordinary functions/classes/constants. And since it is a hash-table, there is no performance penalty.
There is a difference for parsing, certainly. But it's not measurable.