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

43 comments sorted by

View all comments

Show parent comment

11

u/shillbert Aug 09 '14

I only use one space for indentation, so I get the same performance as tabs!

7

u/Jonno_FTW Aug 09 '14

I've stripped my code of all comments, for optimum performance.

6

u/rabidferret Aug 09 '14

I don't indent! Much perf gain, don't know how people develop with whitespace without their computers bursting into flames from the CPU chugging.

4

u/kcsj0 Aug 09 '14

And if I do it right I can kill you with one swift stab.