Hau-Hau / firefox-tab-suspender

A Firefox extension that automatic suspend tabs and saves memory
Other
15 stars 2 forks source link

Feature request - suspend if there is more than X tabs/X ram consumed #31

Open brapacz opened 5 years ago

brapacz commented 5 years ago

Hello,

Plugin is great, but I think that suspending tabs where are only few of them opened may be a cool feature! Something like:

suspend tabs only if:

what do you think?

Hau-Hau commented 5 years ago

Hi!

I think this will be nice feature, especially first option because that will be super easy to do. I will add this to task list, for now I writing test to unbug codebase, so please remember that any feature need to wait.

brapacz commented 5 years ago

Of course, thank you! :-)

Racer-X-9 commented 4 years ago

Hi!

I think this will be nice feature, especially first option because that will be super easy to do.

The first option would be especially useful.

You could make it a user controlled choice on the "Preferences" panel that says "Always keep most recent tabs open: [1]+/-" (like the "Automatically suspend tabs after (seconds) control). Default to 1 if you want, so it acts like the current version without changing it, but if it's increased to {n} it should mean that the {n} most recently used tabs should not be suspended.

The issue I see with using free memory as a criteria is that daily cron jobs (especially mlocate, which is enabled on many distros) could "squeeze" all the tabs closed.

Total memory allocated to firefox is tempting as a control, too. That is probably difficult to determine accurately. Even if it is possible to determine, it would cause the same kind of "squeeze" if a website or a javascript library had a memory leak that consumes memory over time. You'd end up getting the support issues that should be going to the developers of the library/website causing the real issue, the item with the memory consumption issue.