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.
30.2 is the currect release, but I expect that it will be updated shortly after Emacs 31.1 is officially released. If you're _really_ impatient, it seems that there are nightly builds here: <https://emacsformacos.com/builds>.