note 102780 deleted from control-structures.switch by peehaa

From: Date: Mon, 02 Dec 2013 09:09:09 +0000
Subject: note 102780 deleted from control-structures.switch by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197692@lists.php.net to get a copy of this message
Note Submitter: rahbari at gmail dot com ---- I found out that the switch code is executed much like an if/else chain. I wonder why it's not implemented as a jump table. I'm going to use this structure inside a tight loop and the jump table would increase performance up to 40 times.

« previous php.notes (#197692) next »