Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39484 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24678 invoked from network); 30 Jul 2008 20:17:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2008 20:17:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=stefan.esser@sektioneins.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=stefan.esser@sektioneins.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sektioneins.de from 85.214.103.31 cause and error) X-PHP-List-Original-Sender: stefan.esser@sektioneins.de X-Host-Fingerprint: 85.214.103.31 h1332034.stratoserver.net Linux 2.6 Received: from [85.214.103.31] ([85.214.103.31:22902] helo=h1332034.stratoserver.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5B/63-60483-F4CC0984 for ; Wed, 30 Jul 2008 16:17:20 -0400 Received: from Very-Black-Mac.local (cable-87-78-192-118.netcologne.de [87.78.192.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by h1332034.stratoserver.net (Postfix) with ESMTP id 1121CA245A5 for ; Wed, 30 Jul 2008 22:13:02 +0200 (CEST) Message-ID: <4890CC7A.6060303@sektioneins.de> Date: Wed, 30 Jul 2008 22:18:02 +0200 User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: PHP Internals List Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Switch Table Extension for PHP From: stefan.esser@sektioneins.de (Stefan Esser) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiQzHoACgkQSuF5XhWr2nh1xwCfbnodynq8pfjuaennWlj+tih6 PNcAoI8GABX3YwoSMRT/34gLxkdGy1dM =ULxN -----END PGP SIGNATURE-----