For those who use Emacs on macOS, I highly recommend upgrading to 31.1 ASAP since several memory leaks have been fixed by Przemysław Alexander Kamiński [1] et al.
[1]: Author of "Emacs: The macOS Bug" (<https://xlii.space/eng/emacs-the-macos-bug/>), which surfaced on HN some time ago.
i usually get my emacs from https://emacsformacos.com/ but it seems to be stuck on version 30.2 :(
Well, once MacPorts (https://ports.macports.org/port/emacs) has it!