News for hackers. Stuff that matters.
Re:Why git is so fast (or why Java is not as fast as C) by DarkShikari on Saturday January 02, 2010 @04:15AM (#1026998)
Is the cost of JNI really that high? I'm curious--I haven't used it myself, but a client of mine is using it in a very latency-sensitive Java applet that uses JNI to call libavcodec to decode a video stream and then immediately display it through Java's own native libraries, so I would think the cost isn't that high.
Re:Why git is so fast (or why Java is not as fast as C) by mey on Saturday January 02, 2010 @04:38AM (#1027016)
The real cost of JNI is when you hotspot crash and take out the entire JVM instance (say your servlet and all your Tomcat instance as well)

I don't like anything calling out to JNI unless it's the only sane way and it's been heavily tested.