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.

available memory in task manager

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.

firefox profile folder size

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.

softperfect ramdisk create image

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.

ramdisk add disk

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.

save contents to image

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.

ramdisk in explorer

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.

change firefox profiles

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.

paste copied folder

You can now run Firefox as usual and it will automatically load the profile from the super fast RAM disk.

Important Notes:

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”.

ramdisk 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.

28 Comments - Write a Comment

  1. Lifu 2 years ago
  2. Leonardo 6 years ago
    • PeaceByJesus 3 years ago
      • HAL9000 3 years ago
  3. Leonardo 6 years ago
  4. Marc 8 years ago
  5. Pelimies 9 years ago
  6. sm1 9 years ago
    • Marc 8 years ago
  7. John 14 years ago
  8. lawiz 14 years ago
  9. ryann 14 years ago
  10. govind raj 14 years ago
  11. Murphy 14 years ago
  12. SB 14 years ago
  13. dcrowe0050 14 years ago
  14. Willem 14 years ago
  15. norman 14 years ago
  16. bluemangroup 14 years ago
  17. Dan 14 years ago
  18. Shail Shah 14 years ago
  19. Zimbo 14 years ago
  20. aran 14 years ago
  21. Mohamed 14 years ago
  22. JF 14 years ago
  23. roy raay 14 years ago
  24. Ahmad 14 years ago
  25. bruce 14 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please contact us directly.