Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Has anyone done/shared a recent benchmark comparing JNI call latency across Java runtimes? I’m exploring the idea of bringing my strings library to the JVM ecosystem, but in the past, JNI overhead has made this impractical.


Java has replaced JNI with the Project Panama FFM, which depending on your use case might perform quite a bit better than JNI used to. The Vector API is stuck in incubator and still a bit rough around the edges though, so SIMD might be a bit trickier.


Can you share a link to your "strings library"? I am curious about what it can do that a Java String cannot.


At this point, it doesn’t provide much novel functionality, but it should be faster than the standard libraries of most (or maybe all) programming languages.

https://github.com/ashvardanian/StringZilla




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: