Re: Re: [RFC] Namespace-scoped declares, again
| From: | Rowan Collins | Date: | Tue, 30 Jul 2019 16:44:17 +0000 |
| Subject: | Re: Re: [RFC] Namespace-scoped declares, again | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106350@lists.php.net to get a copy of this message | ||
On Tue, 30 Jul 2019 at 17:27, Mark Randall <markyr@gmail.com> wrote:
> At the point we're talking about composer integrating callbacks,
> preloading lists etc, isn't it about time that an spl_autoload_list was
> added that accepted the standard composer classmap [class_id => path]
> and forewent most autoload callbacks entirely?
>
To be honest, at this point autoloading is barely necessary: just ensure
OpCache is configured correctly and preload all the files. When I tested an
exhaustive class map with OpCache disabled, it was actually slightly slower
than a "non-optimized" autoloader, presumably because the array definition
itself takes so long to compile.
Regards,
--
Rowan Collins
[IMSoP]