Make Firefox Faster By Putting Profile and SQLite Database in RAMDisk
One of the biggest problems with Firefox that still remains today is it can get terribly slow after using it for a few months or even years. Similar to the Windows operating system that feels fast after a clean installation and then the performance slowly degrades as you use it. This is the same as Firefox where the files in the Firefox profile folder get bigger and it takes longer to process. If you browse a lot of websites everyday and never clear it, chances are you’ll experience frequent and lengthy pauses in Firefox.
This is because the places.sqlite file that is used to store bookmarks, downloads and browsing history has grown to a file size that your hard drive requires more time to process the information in the database. Clearing the browsing history definitely solves the problem but you’d lose all the websites that you’ve visited and also the very convenient autocomplete feature that saves the the trouble of typing the full URL. Another solution is to store the Firefox profile in memory through RAM Disk software to dramatically speed up the processing of sqlite databases by 10 to 20 times.Before implementing this solution, you should first check the current size of the Firefox profile folder and available memory on your computer to be sure that it is possible to allocate enough memory for Firefox profile folder.
Run Task Manager by simultaneously pressing Ctrl+Shift+Esc and go to Performance tab. Click on Memory and take note of the available memory.
Next, you’ll need to check the size of Firefox’s profile folder. Press Win+R to bring up the Run window, type %appdata%\Mozilla\Firefox\Profiles and click OK. Right click on the folder that you see and select Properties. Check the size of the profile folder.
If you have sufficient available memory for Firefox profile folder, then go ahead and follow the steps below to super speed your Firefox web browser.
Creating and Configuring the RAM Disk
We’ll be using SoftPerfect RAM Disk because it is free and offers the fastest read and write speed based on our RAM disk benchmark.
1. Download SoftPerfect RAM Disk and install.
2. Run SoftPerfect RAM Disk.
3. Click on Image at the menubar and select Create Image.
4. Click on the folder icon, select the path, enter a filename for the image and click Save.
5. As for the Size, enter an amount that is larger than the Firefox profile folder size because the database gets bigger over time but also not too much making sure that there are sufficient available memory for Windows as well.
6. Select NTFS for file system and click OK.
7. After the image has been created, click on Disk at the menubar and select Add.
8. Click on the folder icon to locate the image file that you’ve created earlier, select an unused drive letter, check “Save Contents to Image” and click Advanced button.
9. At the Advanced Disk Properties window, check “Save contents to associated image every, min” and input a number of minutes that you’d like SoftPerfect RAM Disk to automatically save the contents in RAM Disk to the image file and click OK.
Click OK again to close the Add/Edit Disk window. SoftPerfect RAM Disk will start mounting the image file. After mounting, you should now see an extra drive letter appear in Windows Explorer. That is the RAM Disk that has very fast read and write speed where you’ll be moving the Firefox profile folder to.
Putting the Firefox Profile onto the RAM Disk
1. Press Win+R to bring up the Run window.
2. Type %appdata%\Mozilla\Firefox and hit Enter.
3. Open the profiles.ini file with your favorite text editor such as Notepad or Notepad++.
4. Change IsRelative=1 to IsRelative=0. (Number zero)
5. Change the Path=Profiles/xxxxxxxx.default to Path=R:\Profiles\xxxxxxxx.default (Replace the drive letter and xxxxxxxx accordingly), save the changes and close the text editor.
6. Back in the Windows Explorer, right click at the Profiles folder and select Copy.
7. Still in Windows Explorer, navigate to the drive letter that you’ve created with SoftPerfect RAM Disk. Right click on an empty space and select Paste. Alternatively you can also click on the Paste button from the ribbon menu. This will make a copy of your Firefox Profile folder from the original location to the RAM disk.
You can now run Firefox as usual and it will automatically load the profile from the super fast RAM disk.
1. Firefox cache files are still stored on your hard drive and not in RAM disk so you don’t have to worry about the space in RAM disk running out really fast due to cache files. The Firefox profile is located under the Roaming folder in AppData while the cache is under Local folder in AppData.
2. The image created with SoftPerfect RAM Disk may not be up to date if it didn’t manage to get saved in time based on the setting that you’ve entered in step 9 for creating and configuring the RAM Disk section. You can however manually force to save the contents in ramdisk to image by right clicking on the mounted disk and select “Save to Image”.
Alternatively, you can also automate this process by running a batch file containing the following command line:
“C:\Program Files\SoftPerfect RAM Disk\ramdiskws.exe” /save:all
3. It is not possible to change the size of the image that you’ve created with SoftPerfect RAM Disk. If you are running out of RAM disk space, you will need to recreate a new image with a larger size and re-copy the Profile folder from the RAM disk to the new mounted disk.
“Your Firefox profile cannot be loaded. It may be missing or inaccessible”
What am I doing wrong?
I went over every step multiple times and I can’t find the issue.
Is this still working?
you can download and “install” a portable version of FF, run it entirely from ramdrive and you only need to copy your profile from system disk to the respective place in ramdisk…