Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95313 invoked from network); 25 May 2003 04:08:46 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 25 May 2003 04:08:46 -0000 Received: (qmail 7862 invoked from network); 25 May 2003 04:08:35 -0000 Received: from localhost (HELO andi-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 25 May 2003 04:08:35 -0000 Message-ID: <5.1.0.14.2.20030525070753.03166f30@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 25 May 2003 07:08:38 +0300 To: Sterling Hughes ,internals@lists.php.net Cc: Zeev Suraski In-Reply-To: <1053792926.14443.667.camel@hasele> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: Property access slowness From: andi@zend.com (Andi Gutmans) References: <1053792926.14443.667.camel@hasele> At 12:15 PM 5/24/2003 -0400, Sterling Hughes wrote: >Hi, > >Property access with PHP5 is very slow compared to PHP4. The reason for >this is that property access must be verified *every* time. This seems >really unnecessary unless we're indirectly accessing properties. > >Can/Should this be moved to zend_compile.c for everything that doesn't >rely on indirect reference? Which accesses are slower, $obj->prop, $this->prop or both? Andi