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.
600000 is actually ten minutes. 3600000 would be one hour.