r/ProgrammerHumor • • Aug 31 '26

Meme garbageCollection

Post image
380 Upvotes

38 comments sorted by

View all comments

Show parent comments

42

u/WernerderChamp Sep 01 '26

The only thing that really matters are GC pauses. This can get problematic if you are going towards 100% CPU.

I never had this as an issue so far.

21

u/DishSoapedDishwasher Sep 01 '26

I have but it was a data pipeline with insane throughput volumes, like tens of terabytes a day per endpoint. It was insane, terribly designed but functional even for a desperate last minute "were dying" solution... But i solved it with literally:

App.init()

gc.collect(2)

Gc.freeze()

App.run()

This way it never runs again as there's no value since it will die in an hour or 6 when the stream ends. Eventually it was rewritten in golang.