Am 15.03.2021 um 18:41 schrieb Mark Randall <marand...@php.net>: > I would like to propose the addition of a new mechanism of autoloading > classes - a classmap that will be consulted prior to checking the > spl_autoload_register'd callbacks. > > https://wiki.php.net/rfc/autoload_classmap
Just so I understand correctly: This is all about performance, right? Because an autoloader providing this functionality is basically a one-liner, correct? 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? My first impression is that it's a band-aid for overly big class hierarchies without going all the way. Again, maybe some benchmarks could shed some light why this needs to be included in the core. Or maybe I'm missing something. - Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php