Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14467 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79785 invoked by uid 1010); 1 Feb 2005 15:00:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77899 invoked by uid 1007); 1 Feb 2005 14:59:16 -0000 Message-ID: <20050201145915.77896.qmail@lists.php.net> To: internals@lists.php.net References: <20050128223155.81436.qmail@lists.php.net> <5.1.0.14.2.20050128145327.04025190@localhost> <20050128233054.9657.qmail@lists.php.net> <20050128234649.27693.qmail@lists.php.net> <20050128235345.42569.qmail@lists.php.net> <20050130193103.63809.qmail@lists.php.net> <20050131182732.84357.qmail@lists.php.net> <20050131211614.84286.qmail@lists.php.net> <20050131222442.61678.qmail@lists.php.net> <28139bc050131200043b9baff@mail.gmail.com> <20050201104056.39197.qmail@lists.php.net> Date: Tue, 1 Feb 2005 06:59:15 -0800 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Posted-By: 64.142.6.231 Subject: Re: [PHP-DEV] Re: referencing Superglobals with variable variables inside functions From: pollita@php.net ("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 can be reduced (while slightly worsening the non-global lookups) by not bothering to lookup the auto_global table if we're in the global scope already... -Sara