While looking at a micro-optimization question that I asked yesterday (here), I found something strange: an or statement in Java is running slightly faste
I would guess that the issues is that range checking for the array and if the array lookup is implemented as a method call. That would certainly overshadow 4 straight int compares. Have you looked at the byte code?