2 ms·
This was an anti-pattern of the runtime model that Java inherited from Smalltalk. Tuning the GC used to be an arcane art. There was also a lot of effort put in
by stcredzero 9y ago
This was an anti-pattern of the runtime model that Java inherited from Smalltalk. Tuning the GC used to be an arcane art. There was also a lot of effort put in by programming shops to just reducing GC pressure as an optimization. This is why I appreciate Golang's pragmatic approach of not using the GC by avoiding the heap. The main benefit to having GC is to make initial development faster by reducing the severity and frequency of mistakes. It's really there as a safety net, not as a foolproof end-all be-all. Use tools in a way which plays up their strengths.
It's hard to tune a GC to be super-fast. It's easy to profile and find your biggest memory leaks.
- pjmlp 9y agoYeah, there were plenty of GC languages with value types when Java came about, I was bit disappointed it only had them for primitive types. Now they are trying to fit them in without breaking backwards compatibility.