Any performance penalties for switch vs. if/else?
| From: | John Guynn | Date: | Tue, 13 Feb 2001 16:34:09 +0000 |
| Subject: | Any performance penalties for switch vs. if/else? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-39435@lists.php.net to get a copy of this message | ||
If I have a complex if else statement and I replace it with a switch case
statement do I loose any performance? I would think I would gain
performance and the code is definitely easier to maintain but I wanted some
other opinions.
John Guynn
This email brought to you by RFCs 821 and 1225.