Re: [RFC] Autoloader Classmap

From: Date: Mon, 15 Mar 2021 23:13:09 +0000
Subject: Re: [RFC] Autoloader Classmap
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-113552@lists.php.net to get a copy of this message
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


Thread (26 messages)

« previous php.internals (#113552) next »