A common programming task is to determine if an integer is even or odd. Recently, I saw an article showing how to do the task faster than the usual way:
(i % 2) == 0. Today’s article shows an even faster way to check for even or odd.
Posts Tagged and
An absolute fundamental of programming is the concept of logical operators like
||. In a recent comment, Chris H pointed out that MXMLC doesn’t do a particularly good job generating bytecode for these operators. Today I’ll look further into the subject and see just how much this impacts performance.