Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26798 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84310 invoked by uid 1010); 4 Dec 2006 16:47:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84295 invoked from network); 4 Dec 2006 16:47:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Dec 2006 16:47:28 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=iliaal@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.233 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.162.233 nz-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.162.233] ([64.233.162.233:25359] helo=nz-out-0102.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9A/C0-12160-AD054754 for ; Mon, 04 Dec 2006 11:46:53 -0500 Received: by nz-out-0102.google.com with SMTP id k1so2170544nzf for ; Mon, 04 Dec 2006 08:46:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=TvMkbQNtSnBThjIAC5lkkjaTecRENvR36910Om5GsPNtI2rmUGjVokrCCGEKmsIg9Bo+6lstywIUaVwMXI2aIukc/z49Yr0BY7pIWlrse/CIJAf9fwAfCZ/fbFzM1tcgjk6hOz3lguZ7auz4of+VSmzBPWFuMILgsUKIXP5LGWo= Received: by 10.35.20.14 with SMTP id x14mr15725249pyi.1165250775921; Mon, 04 Dec 2006 08:46:15 -0800 (PST) Received: from ?192.168.1.32? ( [204.101.63.110]) by mx.google.com with ESMTP id x56sm25418949pyg.2006.12.04.08.46.15; Mon, 04 Dec 2006 08:46:15 -0800 (PST) In-Reply-To: <45744F81.4050400@php.net> References: <4573B6BC.1030602@php.net> <69F28E44-016B-4941-9081-0683ADCBF986@prohost.org> <45744F81.4050400@php.net> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Mon, 4 Dec 2006 11:46:00 -0500 To: Sara Golemon X-Mailer: Apple Mail (2.752.3) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] Function call speedup (CV applied to functions) From: ilia@prohost.org (Ilia Alshanetsky) On 4-Dec-06, at 11:40 AM, Sara Golemon wrote: >> Looks fairly interesting, I doubt 18% is consistent benefit across >> the board >> > I doubt it very much too. While I made that test to strip out non- > fcall overhead, I also made it favor the effect being produced by > constantly calling the same function from the same scope. Reality > isn't like that. > >> and when unicode overhead is removed is probably less still. > My numbers were based on unicode.semantics=off just FYI... That's good, although unicode based PHP does have a number of additional checks not present in non-unicode version (not-PHP6). >> it does look like a good optimization to make that would certainly >> make PHP faster then before. > I suspect optimized class fetches will help several cases too: > foo::bar(); > foo::baz(foo::BLING); Only for native classes though. Ilia Alshanetsky