r/ProgrammerHumor • • Oct 07 '26

Meme minecraftException

Post image
9.3k Upvotes

830 comments sorted by

View all comments

Show parent comment

12

u/Lyshaka Oct 07 '26

Because GC is unpredictable and runs at random times and can causes frame hitches which can hinder the experience. Also you should clean after yourself.

7

u/DuploJamaal Oct 07 '26

Without any configuration they are unpredictable and stop the world.

But in time-critical applications you would use a low-pause GC like ZGC or Shenandoah.

You can regularly call them manually and they'll do their work in another thread without causing any noticeable drops on performance.