Re: [PHP-DEV] Re: referencing Superglobals with variable variables inside functions

2005-02-03 Thread Andi Gutmans
Superglobals are compiled into global fetches. However, we didn't want to and don't want to slow down the average fetch by checking if it's a superglobal first (i.e. variable variable). This also includes $this which is evaluted at compile-time. I think this is quite fair. Andi At 11:12 PM 2/3/

Re: [PHP-DEV] Re: referencing Superglobals with variable variables inside functions

2005-02-01 Thread Sara Golemon
>> how much does this patch slow execution down? it's one more hash lookup. >> affect speed of $var or $$var? or both? >> > AFAICS, it should make every local-variable (non-global) lookup slower. > Since it needs to do a lookup in the globals table first. > Slows the global ones too, though that c

Re: [PHP-DEV] Re: referencing Superglobals with variable variables inside functions

2005-02-01 Thread M. Sokolewicz
AFAICS, it should make every local-variable (non-global) lookup slower. Since it needs to do a lookup in the globals table first. Xuefer Tinys wrote: $_GET is solved at compile time, which is good, but this make other variables bad at execution time? how much does this patch slow execution down?

Re: [PHP-DEV] Re: referencing Superglobals with variable variables inside functions

2005-01-31 Thread Xuefer Tinys
$_GET is solved at compile time, which is good, but this make other variables bad at execution time? how much does this patch slow execution down? it's one more hash lookup. affect speed of $var or $$var? or both? On Mon, 31 Jan 2005 14:24:41 -0800, Sara Golemon <[EMAIL PROTECTED]> wrote: > > So