News for hackers. Stuff that matters.
Re:.NET 6 vs .NET 5 speedup by kaba0 on Wednesday November 24, 2021 @03:55PM (#29335043)
But comparing it to not doing that work is somewhat dishonest — for that you use compare a malloc for each call and a destructor at the end of the scope — and surprisingly, malloc will often do much worse than a good GC implementation, with trying to defragment a bit, etc.

Also, Java can often accumulate big heaps because it only runs the GC when it absolutely must — as you mentioned, it would be unnecessarily work otherwise. It might be interesting to mention that OpenJDK is the “greenest” out of the managed languages due to that.

There are no comments on this comment yet.