News for hackers. Stuff that matters.
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.
Re:Quick Tips for Fast Code on the JVM by twic on Tuesday January 02, 2018 @11:16AM (#16052735)
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:

https://github.com/tomwhoiscontrary/jni-bench