loilo / auto-group-tabs

Google Chrome extension to automatically group tabs by URL
https://chrome.google.com/webstore/detail/auto-group-tabs/danncghahncanipdoajmakdbeaophenb
MIT License
109 stars 19 forks source link

[feature]chrome.storage size limit #42

Closed sanheng closed 1 year ago

sanheng commented 1 year ago

The quota limitation is 100 KB approx, 8 KB per item. Consider using it to preserve user settings across synced browsers.

Can you change the storage method? Or optimize the size of stored fields, otherwise exceeding 47 grouping rules will exceed the limit and new grouping rules cannot be added.

loilo commented 1 year ago

Oh, good catch, thank you. Let's see what I can achieve with some compression.

loilo commented 1 year ago

I have opted for LZMA-compressing groups before storing them. My personal configuration (64 URLs in 20 groups) is now down to 1.9KB from 4.6KB, and thanks to the compression, used storage should no longer grow linearly with the number of group configurations.

The 0.0.19 extension version with this change is uploaded for review in the web store and should be available in the next days.

Hit me up if you still get storage issues. There are other options to reduce the risk of running into limitations (sharding, in particular), but those are harder to implement with the current architecture, so for now I'll stick with compression.