Re: Function auto-loading
| From: | Levi Morrison | Date: | Mon, 08 Aug 2016 14:36:25 +0000 |
| Subject: | Re: Function auto-loading | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94930@lists.php.net to get a copy of this message | ||
>
>
> I feel like the problem here did not get across properly. 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.
>
Interesting. I come to a different conclusion: this a great opportunity to
get developers to use the fully qualified names. Performance is an
incredibly motivating force even in many situations when it shouldn't be.