Re:Why git is so fast (or why Java is not as fast as C)
by richardw on Saturday January 02, 2010 @05:20AM
(#1027045)
While I'd never claim Java is comparable to C, I'd like to note that the C codebase has, by their admission, 4 years of work in it. I'd be surprised if the JGit codebase isn't much faster in 3/4 years.
[ Parent
| on HN ]
Re:Why git is so fast (or why Java is not as fast as C)
by bad_user on Saturday January 02, 2010 @08:15AM
(#1027171)
The Git codebase has been heavily-optimized from the start. Its speed when branching/merging was its main selling point, ever since Linus started talking about it.
The only way JGit would ever be equal-to or faster than Git is by using better algorithms. And somehow, I don't see this happening ;)
Re:Why git is so fast (or why Java is not as fast as C)
by richardw on Saturday January 02, 2010 @09:29AM
(#1027232)
Nobody's claiming equal-to or faster - currently JGit is twice as slow so there's a lot of room for improvement. Faster than now, not faster than C.
Re:Why git is so fast (or why Java is not as fast as C)
by ajross on Saturday January 02, 2010 @02:17PM
(#1027528)
The linked article actually shows quite a few non-trivial optimizations already being done in JGit (e.g. storing an SHA-1 in 5 ints to avoid the extra heap block). I'd be surprised if they got much farther than they are, honestly.