macOS's App Nap technology reduces energy usage of background applications by throttling their CPU and network activity when not in focus.
Have you tried:
brew install macos system integrity protection tools
Is it worth it?:
macOS's memory compression system transparently compresses inactive RAM pages to extend effective memory capacity without swapping to disk.