Firefox write/read a lot on the disk. This can reduce the performance of other program.
In about:config
browser.sessionstore.interval to 600000 (10 minutes)
This value is in ms.Default is 15000ms (every 15 seconde).
browser.cache.disk.enable to false
It will only use RAM for cache, so reloading website after Firefox restart can be a bit slower if you have a slow network.
Kudos to you for writing this. You just changed my digital life for the better !