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