3 ms·
I was hoping for something that would be general for most GC languages, but it seems to only talk about Java.
by FreeFull 13y ago
I was hoping for something that would be general for most GC languages, but it seems to only talk about Java.
- zeroDivisible 13y agoI might be wrong, but it might be a bit hard to write something general enough to be useful - as most of the items can be easily translated into other languages, it would still be mostly implementation-specific / language design specific.
- ryanpetrich 13y agoThe general advice is to produce less garbage. Strategies for doing so are specific to the language and APIs involved.
- AlisdairO 13y agoIt'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.