News for hackers. Stuff that matters.
Re:Why git is so fast (or why Java is not as fast as C) by fauigerzigerk on Saturday January 02, 2010 @05:50AM (#1027069)
Of the three issues mentioned in the post Java's lack of value types is the important one in my view. That's what causes Java programs to use hugely more memory than C, C++, C# or Go programs. Using more memory translates into an orders of magnitude drop in performance for memory intensive applications.
Re:Why git is so fast (or why Java is not as fast as C) by bad_user on Saturday January 02, 2010 @08:10AM (#1027164)
Not only memory, but there's also a performance penalty related to boxing/unboxing of primitives. That's why the author of that email described how he hasn't used the standard data-structures from Java, like HashMap ... preferring to write his own specialized implementation.