Tuesday, January 4, 2011

Conditionals Performance Revisited

Conditionals Performance Revisited:

Today I’m revisiting an article I wrote last August about conditionals: if-else chains, ternary (? :) operators, and switch statements. In that article I showed that if-else chains are about as fast as ternary operators and that both of them are 10-15% faster than switch statements. Today we’ll take a look at how those conditionals [...]

No comments:

Post a Comment