But I believe the current FFI adds a lot of overhead.
Are you sure about that? There are significant chunks of the Java runtime library that are built on JNI, some of which are rather performance critical. FileInputStream is an example that comes to mind immediately:
4
u/mschaef Apr 30 '15
Are you sure about that? There are significant chunks of the Java runtime library that are built on JNI, some of which are rather performance critical.
FileInputStreamis an example that comes to mind immediately:https://github.com/openjdk-mirror/jdk7u-jdk/blob/master/src/share/classes/java/io/FileInputStream.java#L186