Re: [PHP-DEV] High performance function autoloading

This is only part of a thread. view whole thread
May 21, 2019 08:16 (Gabriel O)
> On 20. May 2019, at 22:30, Theodore Brown <> wrote: > > On Mon, May 20, 2019 at 2:36 PM Gabriel O <> wrote: >> >> Yes, this is misconception. Namespace resolutions are cached. First >> fixer tool bringing support for this was correct: PHP-CS-Fixer auto >> imports only optimized functions for this very same reason. > > I'm confused, since this doesn't match what I've read elsewhere. For > example, Nikita wrote the following last time function autoloading was > discussed: [1] > >> Calling the autoloader if a global function with the name exists will >> totally kill performance. This means that every call to strpos() or >> any of the other functions in the PHP standard library will have to >> go through the autoloader first, unless people use fully qualified >> names (which, currently, they don't). This is completely out of the >> question.
Check <> which is also comment from nikic. I guess there is some confusion core maintainers should clear up. Anyway, my point was if it improves perf of only some functions, this config should be named differently and not have impact on non-optimized ones.