Comment

Comment by bestinterest

This might be an odd question but how often does garbage collection run and whats the usual time taken over a period of time?

Say I'm doing a drawing/game app and creating a few hundred heap objects a second that need to get garbage collected.

I have no idea on how often GC is run on a typical app and how much real time it takes over say an hour of an semi complex app running on average. It obviously depends on the app but I do not even have a number average cost of a GC language for some typical web app.

I only know 'GC's are bad' because the 100s of HackerNews comments dismissing languages because they have a GC for some reason rather than hard examples of them eating up time.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton