
Geek to Live: Top Firefox 2 config tweaks @ LifeHacker isn’t your typical Firefox tweaking guide - no, this is pretty advanced. Because of that, it’s pretty good. Now don’t let the word ‘advanced’ scare you away, it’s pretty straightforward to do considering the well-laid instructions. Here are my favourite 2:
Fetch only what you click
Fx .6 and up: Firefox has this wacky little feature that downloads pages from links it thinks
you may click on pages you view, like the top result on a page of
Google results. This means you use up bandwidth and CPU cycles and
store history for web pages you may not have ever viewed. Creepy, eh?
To stop that madness, set the network.prefetch-next key to false.
Limit RAM usageDud!All versions: Goodness knows I’ve done a good amount of belly-aching about Firefox’s voracious appetite for RAM. (It’s consistently the most memory-intensive process on both my PC and
Mac.) Happily a simple config tweak got Mem Use right back down to a
more comfortable number. Along with the previous prefetch mod, set your
browser.cache.disk.capacity to a value that fits your total RAM.
Update: Unfortunately, the ‘Limit RAM usage’ tip is a dud. Instead it’s a disk-cache usage setting (which can be tweaked in the Firefox’s options menu) which has nothing to do with RAM usage. Instead, see the MozDev Firefox Memory Usage FQA and MozillaZine Knowledge Base for memory saving tips. I recommend these few:
Firefox Memory Cache
By default, Firefox does not use a fixed size memory cache - it uses a percentage of system memory. Setting a fixed size memory cache can often reduce memory usage - 4 or 8MB is sufficient in most instances. To set a fixed size memory cache, add the following pref using about:config:
browser.cache.memory.capacityThis is an integer pref, and can be set to the size you want the cache to be (in kilobytes).
Memory Usage Upon Minimize
There is a pref that enables trimming Firefox memory usage when you minimize all Firefox windows. This pref is for Windows only. To enable it, set the following pref to true using about:config:
config.trim_on_minimize
Fast Back/Forward
Firefox 1.5 has a new fast back/forward feature (bfcache) that vastly
reduces the amount of time taken to display pages when the back/forward
buttons are used. This adds to memory usage. To disable this, set the
following pref to 0 using about:config:
browser.sessionhistory.max_total_viewers
You can also control the number of pages stored instead of disabling it entirely, this is documented in the MozillaZine Knowledge Base. Note that the amount of memory used will vary according to the size and content of pages.
Enjoy.















