mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-28 07:31:17 +05:30
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3174a7089c | |||
| d256f2a001 | |||
| eeed2cd5b1 |
+13
-27
@@ -174,44 +174,30 @@ user_pref("gfx.content.skia-font-cache-size", 20); // 20 MB; default=5; Chrome=2
|
||||
* SECTION: DISK CACHE *
|
||||
****************************************************************************/
|
||||
|
||||
// PREF: force a fixed max cache size on disk
|
||||
// NOTE: You need this set to false if you are to edit the disk capacity value
|
||||
// [1] https://support.mozilla.org/en-US/questions/1271481
|
||||
//user_pref("browser.cache.disk.smart_size.enabled", false);
|
||||
|
||||
// PREF: disk cache size
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=913808,968106,968101
|
||||
// [2] https://rockridge.hatenablog.com/entry/2014/09/15/165501
|
||||
// [3] https://www.reddit.com/r/firefox/comments/17oqhw3/firefox_and_ssd_disk_consumption/
|
||||
//user_pref("browser.cache.disk.smart_size.enabled", false); // force a fixed max cache size on disk
|
||||
//user_pref("browser.cache.disk.capacity", 512000); // default=256000; size of disk cache; 1024000=1GB, 2048000=2GB
|
||||
//user_pref("browser.cache.disk.max_entry_size", 51200); // DEFAULT (50 MB); maximum size of an object in disk cache
|
||||
|
||||
// PREF: Race Cache With Network (RCWN) [FF59+] [REMOVED FF152+]
|
||||
// [ABOUT] about:networking#rcwn
|
||||
// Firefox concurrently sends requests for cached resources to both the
|
||||
// local disk cache and the network server. The browser uses whichever
|
||||
// result arrives first and cancels the other request. This approach sometimes
|
||||
// loads pages faster because the network can be quicker than accessing the cache
|
||||
// on a hard drive. When RCWN is enabled, the request might be served from
|
||||
// the server even if you have valid entry in the cache. Set to false if your
|
||||
// intention is to increase cache usage and reduce network usage.
|
||||
// [1] https://slides.com/valentingosu/race-cache-with-network-2017
|
||||
// [2] https://simonhearne.com/2020/network-faster-than-cache/
|
||||
// [3] https://support.mozilla.org/en-US/questions/1267945
|
||||
// [4] https://askubuntu.com/questions/1214862/36-syns-in-a-row-how-to-limit-firefox-connections-to-one-website
|
||||
// [5] https://bugzilla.mozilla.org/show_bug.cgi?id=1622859
|
||||
// [6] https://soylentnews.org/comments.pl?noupdate=1&sid=40195&page=1&cid=1067867#commentwrap
|
||||
//user_pref("network.http.rcwn.enabled", false); // [REMOVED FF152+]
|
||||
//user_pref("network.http.rcwn.small_resource_size_kb", 256); // attempt to RCWN only if a resource is smaller than this size
|
||||
|
||||
// PREF: cache memory pool
|
||||
// Cache v2 provides a memory pool that stores metadata (such as response headers)
|
||||
// for recently read cache entries [1]. It is managed by a cache thread, and caches with
|
||||
// metadata in the pool appear to be reused immediately.
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=986179
|
||||
//user_pref("browser.cache.disk.metadata_memory_limit", 16384); // default=250 (0.25 MB); limit of recent metadata we keep in memory for faster access
|
||||
//user_pref("browser.cache.disk.metadata_memory_limit", 1024); // DEFAULT (1 MB); limit of recent metadata we keep in memory for faster access
|
||||
|
||||
// PREF: number of chunks we preload ahead of read
|
||||
// Large content such as images will load faster.
|
||||
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=913819,988318
|
||||
// [2] http://www.janbambas.cz/new-firefox-http-cache-enabled/
|
||||
//user_pref("browser.cache.disk.preload_chunk_count", 4); // DEFAULT
|
||||
//user_pref("browser.cache.disk.preload_chunk_count", 8); // default=4
|
||||
|
||||
// PREF: the time period used to re-compute the frecency value of cache entries
|
||||
// The frequency algorithm is used to select entries, and entries that are recently
|
||||
@@ -286,8 +272,8 @@ user_pref("gfx.content.skia-font-cache-size", 20); // 20 MB; default=5; Chrome=2
|
||||
// [1] https://kb.mozillazine.org/Browser.cache.memory.capacity#-1
|
||||
// [2] https://searchfox.org/mozilla-central/source/netwerk/cache2/CacheObserver.cpp#94-125
|
||||
// [3] https://github.com/WaterfoxCo/Waterfox/commit/3fed16932c80a2f6b37d126fe10aed66c7f1c214
|
||||
//user_pref("browser.cache.memory.capacity", 131072); // 128 MB RAM cache; alt=65536 (65 MB RAM cache); default=32768
|
||||
//user_pref("browser.cache.memory.max_entry_size", 20480); // 20 MB max entry; default=5120 (5 MB)
|
||||
//user_pref("browser.cache.memory.capacity", 65536); // default=32768 (32 MB)
|
||||
//user_pref("browser.cache.memory.max_entry_size", 10240); // default=5120 (5 MB)
|
||||
|
||||
// PREF: amount of Back/Forward cached pages stored in memory for each tab
|
||||
// Pages that were recently visited are stored in memory in such a way
|
||||
@@ -298,7 +284,7 @@ user_pref("gfx.content.skia-font-cache-size", 20); // 20 MB; default=5; Chrome=2
|
||||
// is no reason for Firefox to keep memory for this.
|
||||
// -1=determine automatically (8 pages)
|
||||
// [1] https://kb.mozillazine.org/Browser.sessionhistory.max_total_viewers#Possible_values_and_their_effects
|
||||
user_pref("browser.sessionhistory.max_total_viewers", 4); // default=8
|
||||
//user_pref("browser.sessionhistory.max_total_viewers", 8); // DEFAULT
|
||||
//user_pref("browser.sessionstore.max_tabs_undo", 10); // default=25
|
||||
//user_pref("browser.sessionstore.max_entries", 10); // [HIDDEN OR REMOVED]
|
||||
//user_pref("dom.storage.default_quota", 20480); // 20MB; default=5120
|
||||
@@ -328,7 +314,7 @@ user_pref("browser.sessionhistory.max_total_viewers", 4); // default=8
|
||||
//user_pref("media.mediasource.enabled", true); // DEFAULT
|
||||
|
||||
// PREF: adjust video buffering periods when not using MSE (in seconds)
|
||||
// [NOTE] Does not affect videos over 720p since they use DASH playback [1]
|
||||
// [NOTE] Does not affect videos over 720p since they use DASH playback [1] or Web Audio API
|
||||
// [1] https://lifehacker.com/preload-entire-youtube-videos-by-disabling-dash-playbac-1186454034
|
||||
user_pref("media.cache_readahead_limit", 3600); // 10 min; default=60; stop reading ahead when our buffered data is this many seconds ahead of the current playback
|
||||
user_pref("media.cache_resume_threshold", 1800); // 5 min; default=30; when a network connection is suspended, don't resume it until the amount of buffered data falls below this threshold
|
||||
@@ -383,7 +369,7 @@ user_pref("network.http.request.max-start-delay", 5); // default=10
|
||||
// may provide a small speed boost when loading pages with lots of requests.
|
||||
// false = Firefox will send as many requests as possible without pacing
|
||||
// true = Firefox will pace requests (default)
|
||||
user_pref("network.http.pacing.requests.enabled", false);
|
||||
//user_pref("network.http.pacing.requests.enabled", false);
|
||||
//user_pref("network.http.pacing.requests.min-parallelism", 12); // default=6
|
||||
//user_pref("network.http.pacing.requests.burst", 20); // default=10
|
||||
|
||||
@@ -402,7 +388,7 @@ user_pref("network.dnsCacheExpiration", 3600); // keep entries for 1 hour; defau
|
||||
//user_pref("network.dns.max_any_priority_threads", 24); // DEFAULT [FF 123?]
|
||||
|
||||
// PREF: increase TLS token caching
|
||||
user_pref("network.ssl_tokens_cache_capacity", 10240); // default=2048; more TLS token caching (fast reconnects)
|
||||
//user_pref("network.ssl_tokens_cache_capacity", 8192); // TLS token caching (fast reconnects)
|
||||
|
||||
/****************************************************************************
|
||||
* SECTION: EXPERIMENTAL *
|
||||
|
||||
Reference in New Issue
Block a user