Why is C faster than Java: git vs JGit
11–20 of 106 posts
Re: Why is C faster than Java: git vs JGit
#12> when you do use Java NIO MappedByteBuffer, we still have to copy to a temporary byte[] in order to do any real processing Does anyone know why this is the case?
The memory you have is therefore allocated by the kernel of your operating system and oblivious to any garbage collector you might have.
Re: Why is C faster than Java: git vs JGit
#13Re: Why is C faster than Java: git vs JGit
#14I find it kind of interesting that in Haskell, which is arguably even higher level than Java, most of these optimisations are eminently possible.. EDIT: This obviously came across a bit as language fanboyism, so I guess I should mention that the language features that let you do many of them let you shoot yourself in the foot just as easily as you can in C, and you can certainly argue that with a strong FFI you might…
Re: Why is C faster than Java: git vs JGit
#15I wonder where do Shawn work at Google and in which product they use jgit.
(a code review tool used by Android.)
Re: Why is C faster than Java: git vs JGit
#16Many of us have already read this and it's been submitted to HN several times before. This, of course, does not mean that it's not worth reposting, but interested parties may want to dig up some of the past discussions.
Re: Why is C faster than Java: git vs JGit
#17Note the date: 2009-04-30 18:43:19 Many of us have already read this and it's been submitted to HN several times before. This, of course, does not mean that it's not worth reposting, but interested parties may want to dig up some of the past discussions.
Re: Why is C faster than Java: git vs JGit
#18Be careful and stay standards-compliant and you can keep most of the portability and maintenance advantages while picking up some significant speed.
Re: Why is C faster than Java: git vs JGit
#19I almost skipped this link; I assumed it was typical borring blog noise. It's not. This is an insightful post from the git mailing list which shows some of the real limitations that a top tier developer hits when trying to write Java code as fast as neatly optimized C code. Definitely worth reading.
Edit: I mean most of the problems (maybe features) of java are known.