Bug 1355350 - lift cache entry size for mailnews. r=rkent a=jorgk ba=jorgk
authorJorg K <jorgk@jorgk.com>
Mon, 24 Apr 2017 08:37:33 +0200
changeset 27817 75634f13d8d726eeab24822f9cf48b50122fb698
parent 27816 59ec25d91f5641ab8340c34305d7ed4ae64d00b2
child 27818 8927d6f79d0a1ffe704673f2a8700b411f71b1c8
push id1924
push usermozilla@jorgk.com
push dateTue, 25 Apr 2017 09:02:43 +0000
treeherdercomm-beta@75634f13d8d7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrkent, jorgk
bugs1355350
Bug 1355350 - lift cache entry size for mailnews. r=rkent a=jorgk ba=jorgk
mailnews/mailnews.js
--- a/mailnews/mailnews.js
+++ b/mailnews/mailnews.js
@@ -85,16 +85,23 @@ pref("mail.db_timestamp_leeway", 4000);
 // How long should we leave idle db's open, in milliseconds.
 pref("mail.db.idle_limit", 300000);
 // How many db's should we leave open? LRU db's will be closed first
 pref("mail.db.max_open", 30);
 
 // Should we allow folders over 4GB in size?
 pref("mailnews.allowMboxOver4GB", true);
 
+// For IMAP caching lift the limits since they are designed for HTML pages.
+// Note that the maximum size of a cache entry is limited by
+// max_entry_size and (capacity >> 3), so devided by 8.
+// Larger messages or attachments won't be cached.
+pref("browser.cache.memory.max_entry_size", 15000); //  15 MB
+pref("browser.cache.memory.capacity",      120000); // 120 MB = 8*15 MB
+
 pref("mail.imap.chunk_size",                65536);
 pref("mail.imap.min_chunk_size_threshold",  98304);
 pref("mail.imap.chunk_fast",                2);
 pref("mail.imap.chunk_ideal",               4);
 pref("mail.imap.chunk_add",                 8192);
 pref("mail.imap.hide_other_users",          false);
 pref("mail.imap.hide_unused_namespaces",    true);
 pref("mail.imap.auto_unsubscribe_from_noselect_folders",    true);