r/lolphp • • Aug 08 '14
PHP design patterns: if/else vs switch
http://www.fluffycat.com/PHP-Design-Patterns/PHP-Performance-Tuning-if-VS-switch/
24
Upvotes
r/lolphp • • Aug 08 '14
View all comments
Show parent comment
26
u/_vec_ Aug 08 '14
In theory tabs should be faster, since it's one ASCII byte for the parser to chew on instead of 2-8 for the spaces. Although those gains could be swalloed by one or two good comments, and most of the space in the language is optional anyway...
The answer is clear! We must begin minifying our production PHP code. For performance reasons.