Why is (a*b != 0) faster than (a != 0 && b != 0) in Java?
I’m writing some code in Java where, at some point, the flow of the program is determined by whether two int variables, “a” and “b”, are non-zero (note: a and b are never negative, and never within integer overflow range). I can evaluate it with if (a != 0 && b != 0) { /* … Read more