Re: [RFC] Autoloader Classmap

From: Date: Wed, 17 Mar 2021 01:51:09 +0000
Subject: Re: [RFC] Autoloader Classmap
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-113582@lists.php.net to get a copy of this message
On 17/03/2021 01:29, Mike Schinkel wrote:
Would core not be able to implement an add() more efficiently than a get()/set()? I am especially concerned the get()/set() approach might require allocating memory for the returned array for every get().
There is no good way to add features to mutate the existing array without causing a net performance penalty considering the approximately 5% boost this RFC provides vs a userland function. It is a micro-optimization written exclusively with a single large pre-generated list in mind. It will be left to the voters to decide if 5% of an extremely common operation is worth the few dozen lines of code required. Mark Randall

Thread (26 messages)

« previous php.internals (#113582) next »