Re: Giving Globals the CV treatment [WAS: Runtime JIT Proposals]

From: Date: Fri, 19 Jan 2007 02:12:59 +0000
Subject: Re: Giving Globals the CV treatment [WAS: Runtime JIT Proposals]
Groups: php.internals 
Request: Send a blank email to internals+get-27531@lists.php.net to get a copy of this message
ilia@prohost.org wrote:
The optimizer already does most of those things, so I think things like that are best left there rather then being done in the core. How exactly does the (by "the" I presume you mean "your") optimizer manage to turn $_POST['foo'] into a single CV based DIM fetch? The current get_ptr_ptr_cv semantics only pull from EG(active_symbol_table)...
Or do you mean that they turn: ZEND_FETCH_R $0 'GLOBALS' (global) ZEND_FETCH_DIM_R $1 $0 'foo' Into: ZEND_FETCH_R $1 'foo' (global) And: ZEND_BEGIN_SILENCE ZEND_FETCH_R $0 'foo' (local) ZEND_FETCH_DIM_R $1 $0 'bar' ZEND_END_SILENCE Into: ZEND_BEGIN_SILENCE ZEND_FETCH_DIM_R $1 !0 'bar' ZEND_END_SILENCE With !0 being a newly generated CV pointing at $foo -Sara

« previous php.internals (#27531) next »