4 ms·
It's not just that you need to produce less garbage - you want to produce less live objects in general, as a large part of the cost during GC is determining whi
by AlisdairO 13y ago
It's not just that you need to produce less garbage - you want to produce less live objects in general, as a large part of the cost during GC is determining which objects are live.
- RyanZAG 13y agoThat depends - if your code is mostly single threaded, and you're using the concmarksweep collector on a multicore CPU, determinign which objects are live is basically 'free'. On machines with a high number of cores, have all cores on 100% is very rare.