Mobile/MemoryReduction: Difference between revisions

Jump to navigation Jump to search
add note about how to set the memory cache capacity lower
No edit summary
(add note about how to set the memory cache capacity lower)
Line 19: Line 19:
  user_pref("browser.cache.memory.enable", false);
  user_pref("browser.cache.memory.enable", false);


This turns off the cache - stuart says this should be set to some minimal number otherwise you'll do a lot more decoding images over and over againNeed to do some investigation.
This turns off the cache.  Probably not the best thing to do as things will get decoded more than once and you'll end up with more fragmentation according to stuartGood to leave this at some small number instead.
 
user_pref("browser.cache.memory.capacity", 8192);
 
This sets the memory cache to 8MB, which is a good starting size.  (Also the same default size as what WebKit uses.)


===Reduce disk cache===
===Reduce disk cache===
canmove, Confirmed users
1,577

edits

Navigation menu