News for hackers. Stuff that matters.
Re:The original magic Emacs garbage collection hack (2019) by adchari on Tuesday January 30, 2024 @10:12AM (#39190982)
I've done this for a while, increasing the threshold and collecting every time I tab away from an emacs window

(setq gc-cons-threshold 100000000) (add-function :after after-focus-change-function 'garbage-collect)

Re:The original magic Emacs garbage collection hack (2019) by kazinator on Tuesday January 30, 2024 @12:31PM (#39192990)
The refinement in https://news.ycombinator.com/item?id=39191012 seems useful.