News for hackers. Stuff that matters.
Re:Why git is so fast (or why Java is not as fast as C) by jorgeortiz85 on Saturday January 02, 2010 @03:49AM (#1026981)
JGit isn't meant to be a replacement for git on the command-line. It's meant to be used inside IDEs and web servers that 1) are already running on a JVM, 2) need to interact with git, and 3) don't want to pay JNI costs. JVM start-up times are a non-issue for these use cases.
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.