On Tue, Mar 16, 2021 at 2:01 AM Christian Schneider <cschneid@cschneid.com>
wrote:
> If the number of classes to load is indeed that big that the function call
> overhead is significant enough (I agree with Levi that some numbers
> illustrating what we're talking about would be nice), wouldn't that be a
> case for class preloading to really speed things up?
Preloading doesn't work in every situation, for example Wikipedia depends
on one class corresponding to multiple files for progressive deployments;
the right file will be determined at runtime. This is not something the
preloader can do, AFAIU.
For people who are unable to take advantage of I was actually thinking of
proposing adding a PSR-4 autoloader to PHP core.
--
Best regards,
Max Semenik