The more memory your Mac has, the less likely it is that macOS will need to move data for an idle app to storage to free it up for something else, and back to memory when it’s needed. So, you may want to upgrade your Mac’s memory. Some repair centers can do this, but you can do it yourself on many older Macs. Identify your model in > About This Mac, click the Memory tab to see how much is installed, then click Memory Upgrade Instructions. Note that some Macs can’t be upgraded at all.