Re: Function call speedup (CV applied to functions)

From: Date: Mon, 04 Dec 2006 16:46:00 +0000
Subject: Re: Function call speedup (CV applied to functions)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-26798@lists.php.net to get a copy of this message
On 4-Dec-06, at 11:40 AM, Sara Golemon wrote:
Looks fairly interesting, I doubt 18% is consistent benefit across the board
I doubt it very much too. While I made that test to strip out non-fcall overhead, I also made it favor the effect being produced by constantly calling the same function from the same scope. Reality isn't like that.
and when unicode overhead is removed is probably less still.
My numbers were based on unicode.semantics=off just FYI...
That's good, although unicode based PHP does have a number of additional checks not present in non-unicode version (not-PHP6).
it does look like a good optimization to make that would certainly make PHP faster then before.
I suspect optimized class fetches will help several cases too: foo::bar(); foo::baz(foo::BLING);
Only for native classes though. Ilia Alshanetsky

« previous php.internals (#26798) next »