I often refurbish older PCs that have older and very slow HDDs but plenty of RAM. On Linux, I use profile-sync-daemon or rsync scipts to load the Firefox profile into memory at startup and sync it back to disk when Firefox closes. Having a feature like this built directly into Firefox would significantly improve performance and user experience on PCs with HDDs. However, users with modern SSDs would also benefit through faster speeds and reduced drive wear.
It would be great if Firefox included built-in support for managing high-I/O files in memory—specifically:
Frequently written profile files: Such as .sqlite databases. Please consider exposing settings to control how frequently Firefox flushes data from memory to .sqlite databases and other files in the user profile
Cache index (potentially the entire cache?): While about:config offers memory caching options, it does not persist cache deltas back to disk upon browser closure.