Switch Table Extension for PHP
| From: | Stefan Esser | Date: | Wed, 30 Jul 2008 20:18:02 +0000 |
| Subject: | Switch Table Extension for PHP | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-39484@lists.php.net to get a copy of this message | ||
-----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-----