Re: Method call improvements

From: Date: Thu, 22 Jan 2009 13:20:56 +0000
Subject: Re: Method call improvements
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-42776@lists.php.net to get a copy of this message
Marcus Boerger wrote:
Aren't we able to bind these at least partially to the function call opcode, in case we know they are constant? If all is constsnt we could even store the whole lookup in the opcode. Well you'd have to convince Zend to do that because os far they have always been against this approach.
We can't modify opcode it self as it'll break opcode caches. However we can introduce some indirect table associated with op_array, which can be used to implement inline caches without direct opcode modification (in the same way as IS_CV variables work). There are a lot of papers about polymorphic inline caches (e.g. http://research.sun.com/self/papers/pics.html) which we probably should use to not to invite bicycle. Thanks. Dmitry.

« previous php.internals (#42776) next »