News for hackers. Stuff that matters.
Re:What Should I Know About Garbage Collection as a Java Dev... by turtledragonfly on Tuesday January 10, 2023 @05:41PM (#34332561)
Well, there's still truth to it in other cases, I think. One terrible thing GCs can do is make your performance unpredictable. In some performance-sensitive situations (eg: video games), your worst-case perf is more important than your average case. Adding a GC can mess with that worst-case behavior, and in unpredictable ways.

That being said, modern GCs are much better (less "stop the world" stuff), and more configurable. But it's still a real concern.

Re:What Should I Know About Garbage Collection as a Java Dev... by astrange on Tuesday January 10, 2023 @07:32PM (#34333484)
GCs also have very different memory access behavior, and so can be worse on a system with swap (or use more power on a system without one) even if theoretically they're more efficient.