On Friday, 23 February 2018 at 02:16:38 UTC, Jonathan M Davis
wrote:
The GC won't slow down your code in general (in fact, it will
probably speed it up in comparison to reference counting), but
whenever the GC does a collection, that means that it stops all
threads that it manages. So, you could suddenly have everything
stop for 100ms (the actual length of a collection is going to
depend on how much memory the GC has to scan, and I don't know
what the typical length of a collection is; that will depend on
the program). For programs that can afford to occasionally stop
like that, that's not a problem. For a game that's trying to
maintain 60fps, that's likely a really big deal.
- Jonathan M Davis
That's what I thought for a game, but probably no one tested yet
to see the impact. Thanks, I'll read on.