3 ms·
JNI roundtrips definitely do not cost 1ms per trip.
by badlogic 9y ago
JNI roundtrips definitely do not cost 1ms per trip.
- twic 9y agoTrue. 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 https://github.com/tomwhoiscontrary/jni-bench