Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39534 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45239 invoked from network); 1 Aug 2008 11:33:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Aug 2008 11:33:05 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:39647] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/21-39007-E64F2984 for ; Fri, 01 Aug 2008 07:33:04 -0400 Received: from ws.home ([10.1.1.1]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 1 Aug 2008 14:33:41 +0300 Message-ID: <4892F46A.1060008@zend.com> Date: Fri, 01 Aug 2008 15:32:58 +0400 User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Marcus Boerger CC: Stefan Esser , PHP Internals List References: <4890CC7A.6060303@sektioneins.de> <416879664.20080801004706@marcus-boerger.de> In-Reply-To: <416879664.20080801004706@marcus-boerger.de> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2008 11:33:42.0072 (UTC) FILETIME=[7323AB80:01C8F3CA] Subject: Re: [PHP-DEV] Switch Table Extension for PHP From: dmitry@zend.com (Dmitry Stogov) Please note that the extension modifies op_array and run-time and it definitely will break opcode caches. However, it is probably possible to reimplement it on compiler level (may be with new opcode). Thanks. Dmitry. Marcus Boerger wrote: > Hello Stefan, > > please discuss with RMs when to merge this in. IMO such a nice locale > improvment can go in anytime during alpha when RMs approve. > > marcus > > Wednesday, July 30, 2008, 10:18:02 PM, you wrote: > > Hi, > > for everyone interested in getting the last bit of speed out of his PHP > I created a small extension that overrides the ZEND_CASE opcode and > optimizes its execution. > > On the first execution of a switch statement it builds up a jumptable > for all the cases and later execution of the same switch statement is > then performed by directly looking up the jump target within the jumptable. > > You can find more information and the download at > > http://www.suspekt.org/switchtable/ > > I am very interested how it performs with YOUR switch statements. And I > am also very interested if its implementation unexpectedly breaks YOUR > switch statements. > > Greeting, > Stefan > Best regards, > Marcus