rNeomy / auto-tab-discard

Use native tab discarding method to automatically reduce memory usage of inactive tabs
https://webextension.org/listing/tab-discard.html
Mozilla Public License 2.0
906 stars 79 forks source link

Checking for discarding tabs is not working as expected #256

Open ghost opened 2 years ago

ghost commented 2 years ago

"Discard inactive tabs after (in minutes) X (use zero minute to disable auto tab discarding) when the number of inactive tabs exceeds X"

  1. If I set to discard tabs after 10 minutes the tabs that are not that old like 9 mins and 20 seconds the tab will get discarded after 20 minutes
  2. The sentence cam be simplified by "Discard inactive tabs after [X] minutes (zero to disable) when the number of inactive tabs exceeds X"

A. A way is to create individual timers for tabs that are respecting the rules "Do not..." and when the tab gets changed/inactive, create the timer. And destroy it if is focused / active again. B. Other way is to add other timer to check every minute to be more faster.

Other: "Maximum number of tabs to check for discarding per single automatic discarding request" not sure what does and for what is. I don't see the purpose. I want all tabs that can be discarded. I don't case how many. Can't put 0 to disable. Same the "Minimum delay between sequential discarding checks (in seconds)3". I don't see a Maximum value. So why is called Minimum?

AnshulJ999 commented 2 years ago

Same issue. For the past few weeks this extension is not working as expected, and sometimes even manually 'discard all other tabs' does not work. I have to factory reset the extension, then Shift+click the 'discard all other tabs' option in menu for it to actually discard tabs. Automatic discarding doesn't work as expected. Sometimes my Chrome usage ramps up to 8 GB RAM, which never used to happen before. I believe Chrome has made some changes, because several other extensions are also facing issues.

rNeomy commented 2 years ago

A way is to create individual timers for tabs that are respecting the rules

This is not efficient! I reduced the check to one-third of the period that the user requested. So on the default config, the extension checks every 3 minutes for tabs that need to be discarded.

The sentence can be simplified by ...

Thanks! I updated the "en" locale.

I want all tabs that can be discarded...

Discarding too many tabs at once freezes the browser.

rNeomy commented 2 years ago

sometimes even manually 'discard all other tabs' does not work.

Manual discarding respects the exception list. By using Shift + Click, you ask the extension to bypass the list.

Sometimes my Chrome usage ramps up to 8 GB RAM, which never used to happen before.

Switch to a new profile. Either you have a malfunction extension, or the profile is damaged.

AnshulJ999 commented 2 years ago

I'm not sure how that exception list happens. I don't add tabs to exceptions but still some of them do. Shift + Clicking works, but that's an additional step.

As for the 8 GB RAM, that's not an issue with the profile - I just tend to open several dozen tabs while researching (sometimes over 100). But I'd like Auto tab discard to automatically discard tabs that aren't being used to save memory when it crosses that. The settings menu is a bit confusing to me so I use it on default factory settings.

rNeomy commented 2 years ago

What is the URL of a tab that you need to force discard?

Chealer commented 1 month ago

@ghost which browser and extension version do you use? And can you provide reproduction steps?