While writing a large series of in-line if / else statements I came across a very fundamental question. Which one is faster, in-line if / else statements or your standard if / else statement block? No matter who I asked no one seemed to have a good answer, so I took it upon myself to find one.We can all probably agree that in-line if statements certainly take up less space and some may argue that the are much cleaner code. And to be fair the more I’ve used in-line statements the more I’ve come to like them. But the question still remained, in the realm of performance which one was faster. Continue reading »
Apr 152011