I’ve updated the article on the range check elimination optimization in Java. I added a case that provided a hint to the JIT which helps when the index is otherwise too complex for the JIT to realize that the range check can be eliminated.
I’ve updated the article on the range check elimination optimization in Java. I added a case that provided a hint to the JIT which helps when the index is otherwise too complex for the JIT to realize that the range check can be eliminated.
Very interesting. Maybe other JVMs (IBM’s, BEA’s (?) RockIt etc.) are better? Can you put a link to the factor 10 in matrix multiplication slowdown?
Thanks, Anli. I can’t find my matrix tests so I’ll have to recreate them. In the mean time, there are ratings from Keith Lea showing a factor of 3 for matrix tests on the client VM and only 1.5x on the server VM.