Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27531 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51073 invoked by uid 1010); 19 Jan 2007 02:12:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51058 invoked from network); 19 Jan 2007 02:12:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2007 02:12:53 -0000 Authentication-Results: pb1.pair.com header.from=pollita@php.net; sender-id=unknown; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=pollita@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 140.211.166.39 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pollita@php.net X-Host-Fingerprint: 140.211.166.39 osu1.php.net Linux 2.4/2.6 Received: from [140.211.166.39] ([140.211.166.39:33312] helo=osu1.php.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/EB-22081-52920B54 for ; Thu, 18 Jan 2007 21:12:53 -0500 X-DomainKeys: Ecelerity dk_sign implementing draft-delany-domainkeys-base-01 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=mx; d=php.net; h=From:Subject:To:Date; b=tqKzGunOjNv748KxnFwZ2FmW4LRglO9eRpZ/abbraLtaVAg2rLHiu+iv4TnN4JRY jWHLjCxueQGfA9RrIBWe4HJhHISMrgvO0twiOjSLTDMu414/bJN4YSW0M52l3ZHy Authentication-Results: osu1.php.net smtp.user=pollita; auth=pass (LOGIN) X-Host-Fingerprint: 216.145.49.15 unknown Received: from [216.145.49.15] ([216.145.49.15:61421] helo=[192.168.1.100]) by osu1.php.net (ecelerity 2.1.1.11-rc1 r(13363/13364M)) with ESMTPSA (cipher=AES256-SHA) id 4A/83-27923-67920B54 for ; Thu, 18 Jan 2007 18:14:15 -0800 Message-ID: <45B0292B.8050705@php.net> Date: Thu, 18 Jan 2007 18:12:59 -0800 User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: ilia@prohost.org CC: Dmitry Stogov , internals@lists.php.net, 'Andrei Zmievski' , 'Andi Gutmans' Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Giving Globals the CV treatment [WAS: Runtime JIT Proposals] From: pollita@php.net (Sara Golemon) 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