C
Chris
I have some super time-critical code, where I'm doing a lot of integer math
across very large arrays. Performance isn't as good as it could be. I'm
wondering if the fact that Java does bounds checking on every array access
could be slowing things up.
Question: is the bounds-checking performed in bytecode, or in native JVM
code? I'm thinking that if it's in bytecode, I could generate a little
custom code that turns it off for those time-critical methods.
across very large arrays. Performance isn't as good as it could be. I'm
wondering if the fact that Java does bounds checking on every array access
could be slowing things up.
Question: is the bounds-checking performed in bytecode, or in native JVM
code? I'm thinking that if it's in bytecode, I could generate a little
custom code that turns it off for those time-critical methods.