News for hackers. Stuff that matters.
Re:How to get C like performance in Java by ajross on Tuesday August 28, 2012 @01:15PM (#4444776)
Always a good link to throw in in a discussion about "XXX vs. C" performance: http://marc.info/?l=git&m=124111702609723&w=2

Basically it's a quick case study (in the form of a mailing list reply) of implementing git in Java, tuning heavily for performance, and comparing to the equally tuned C implementation. Java does well, but fundamental issues like lack of value types (i.e. all objects must go into independently managed heap cells) and memory typesafety (converting a SHA-1 between int[5] and byte[20] is a bounds-checked copy in Java, where it's zero-cost in C) put a firm cap on how fast it can be made to go.

There are no comments on this comment yet.