Hacker News new | ask | show | jobs
by jcmontx 262 days ago
But don't you take a hit in performance by running the GC more often?
2 comments

Maybe, maybe not. If GC is a O(n^2) then running it twice at n=5 is a much shorter run time than once at n=10.
Not necessarily if you have more (so smaller) heaps so each GC takes less time.