Repository navigation
Opt-in Helium-style idle tab unloader to reduce long-session RAM usage #16809
Quantum-Quasar
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Background & Measured Data
To understand where Zen Browser uses more RAM than stock Firefox and Chromium, I ran a headless 5-tab benchmark on Linux (identical local HTML/JS pages) measuring total process-tree PSS (
/proc/<pid>/smaps_rollup) and Geckoabout:memorydumps (nsIMemoryInfoDumper):From the
about:memorydiff between Zen 1.24.3b and stock Firefox ESR:explicit/gfx/webrender/swgl: +44.0 MiB (117.8 MiB vs. 73.8 MiB) — virtually the entire resident delta over Firefox, driven by Zen's translucent/gradient/rounded chrome compositor layers.explicit/js-non-window+5.7 MiB,explicit/window-objects+4.9 MiB,explicit/script-preloader+3.8 MiB,explicit/storage+3.3 MiB).Comparison with Helium Browser
Looking at
imputnet/helium's memory patches:lazy-session-restore.patch) — Zen already hasbrowser.sessionstore.restore_pinned_tabs_on_demand: true.hibernate-tab-context-menu.patch) — Zen already hasbrowser.tabs.unloadTabInContextMenu: true.memory-saving-by-default.patch,infinite-tab-freezing.patch) — this is the main missing piece in Zen/Firefox, since Firefox's built-inbrowser.tabs.unloadOnLowMemoryonly fires when OS-wide free RAM drops critically low rather than proactively after an inactivity timeout.Proposal
Would the team consider an opt-in idle tab unloader setting (disabled by default, e.g. under Settings > Tab Management, with a configurable inactivity timeout and automatic exemptions for pinned/essential/audible/active-form tabs) built on top of Firefox's native
gBrowser.discardBrowser(tab)API?Keeping it opt-in avoids surprising users who expect background tabs to stay live, while giving users on 8–16 GB laptops a native, zero-extension way to keep workspace-heavy sessions lean.
All reactions