Once again I'm being lazy and in hurry, so it's a copy and paste.
Firefox is supposed to dynamically realease memory from its RAM cache to other Windows applications as needed. Firefox power users recommend limiting the memory cache using the Configuration Console. This frees up memory for other apps, speeding up everything to a greater or a lesser extent, depending on your machine and the applications you run. Here’s how the trick works:
How to limit RAM Cache in Firefox
1. Type about:config into Firefox’s Address Bar and press Enter.
2. Right-click any row, then click New
3. Click Integer.
4. Type or paste the following preference name into the dialog box that appears (this is a hidden preference that doesn’t exist in the Configuration Console until you create it): browser. cache.memory.capacity
5. Click OK
6. Enter the following integer number into the next dialog box, representing 16 MB of RAM for the cache: 16000
7. Click OK to close the dialog box,
8. Close all instances of Firefox and restart it.
Resources
Moving your Firefox’s Cache Files, Tweaking Firefox Tips&Tricks Disclaimer
Disclaimer applies.