3 ms·
Thanks. I'd guess something similar happens here. However, I doubt it's they same case as you, since there are no floating point operations involved here. How'
by lokedhs 5y ago
Thanks. I'd guess something similar happens here. However, I doubt it's they same case as you, since there are no floating point operations involved here.
How's were you able to figure it out? Where should I start looking?
- jffhn 5y agoI didn't use any tool, I just knew these casts could be slow and changed one to avoid a suspected factorization, which just worked, but there are ways to show the code generated by the JIT, cf. https://stackoverflow.com/questions/1503479/how-to-see-jit-compiled-code-in-jvm https://stackoverflow.com/questions/1503479/how-to-see-jit-c... or https://stackoverflow.com/questions/30928786/how-do-i-check-assembly-output-of-java-code https://stackoverflow.com/questions/30928786/how-do-i-check-...