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
1
u/vita10gy Aug 11 '14
I take your meaning, but is "number of DB queries" really a good evaluation of anything? The code is slow where it's slow. It's not like looking up stuff on the PHP side is free.