Re: [PHP-DEV] Re: [RFC] Namespace-scoped declares, again

  106350
July 30, 2019 16:44 rowan.collins@gmail.com (Rowan Collins)
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]