Re:Quick Tips for Fast Code on the JVM
by badlogic on Sunday December 31, 2017 @11:31PM
(#16044714)
JNI roundtrips definitely do not cost 1ms per trip.
[ Parent
| on HN ]
True. I did some benchmarking a while ago, and had that number in my head. Revisiting it now, it seems to be way off - more like 5 nanoseconds with -Xcheck:jni on. Code: