Morikko / sync-tab-groups

Sync Tab Groups is an easy way to manage all your tabs. You organize them depending on a topic by group. Groups can be closed and reopend without caring about your session. Moreover, you can esily search, active, move, save and remove your groups and tabs.
MIT License
147 stars 18 forks source link

STG is slow/lagging when used with many groups/tabs #151

Open Artres opened 6 years ago

Artres commented 6 years ago

Hey there!

I use this plugin quite a lot and it's uniquely useful in maintaining some semblance of order within the mixed untidy mess that is usually my browser. I use Firefox to note since this seems to be available for Chrome.

Now then, to get the point, I've been getting consistent lag spikes recently. Starting around two weeks ago, I suspect the reason is the number of groups or number of pages I have contained within the groups. I.e. 500-550ish pages between 24 groups (so way more than a lot of pages and groups basically).

With my limited testing I've found that, after backing up all these tabs and groups, when the groups are cleared or the plugin is reset, the problem disappears.

Of course there's the solution of just doing the above and getting rid of a ton of tabs but meh, may as well check in here for the hell of it y'know.

Notably, when the plugin is disabled with any number of tabs and/or groups open, the lag spikes immediately stop. So I had 300 tabs loaded for... reasons, and the moment the plugin was disabled there was no problems (besides the obvious one of the loss of actively updating the groups and organization of course).

Also, on a final note that seems to be relevant, on certain pages it seems to completely disappear or vary in frequency, such as when I write this, the browser is entirely fine yet when I'm on the SyncTab setting page or Youtube for example, I would get a 2-3 second long lag spike every... 2-3 seconds (so not on the degree that it can be put up with).

Thanks for taking your time to read this post. Even if it can't be solved without the above obvious solution (or my makeshift one of just disabling and enabling the tab when I want to organize things.... extremely slowly).

Morikko commented 5 years ago

I have heard some similar behavior when the application is used with many tabs/groups. As, I have less than 100 tabs, I don't face the problem regularly.

My code should be optimized to be used with many groups/tabs. Feel free to investigate and correct the code. I have planned to switch to another code that is more powerful and stable but it could take some time.