-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use IndexedDB as cache storage on Chromium platform #328
Comments
Isn't extension storage already compressed natively in Chromium? Files in Snappy https://en.wikipedia.org/wiki/LevelDB#Features |
Could be. However I found that with IndexedDB (seems to be at With a valid selfie, when using I can only speculate but it seems the browser will keep entries from |
My storage usage on Chromium on |
Measured by uBO? |
Yes, the one listed in settings.html ? |
On disk for all non-regional list both use ~17MB (needs some time to stabilize and restart to remove overgrown |
what do you mean ? |
@gorhill The storage value seems to be jumping back and forth on my end. Once I see 10 MB in use and then after few minutes/hours, it's 17 MB in use, is this to be expected ? |
Probably uBO created a selfie, used for fast loading next time uBO is launched. The selfie is destroyed whenever a filter list is updated, and it will re-create itself after ~17 minutes following the reload of all filter lists. |
So for future use ? Thats odd as I don't close Chromium for hours together(not disabling uBO either) and this happens randomly. |
Both stable and dev uses comparable amount of disk storage (after stabilisation). Stable uses more initially, releases excess after restart (very lazy, can take hours).
|
and what about dev builds as I'm on that ? |
Check |
I did, I see lots of files inside the first folder, the last two have files name LOCK and other files which are created by chromium I suppose. |
I just discovered (reddit) that Firefox also have compression in indexedDB: But when it's used and for what type of data?? |
Currently,
IndexedDB
is used only on Firefox platform to implement cache storage. Chromium uses extension API storage (chrome.storage.local
) as a cache storage, i.e. cache items are sharing the same physical storage as user setting ones.A benefit of using
IndexedDB
is that the items stored in it are LZ4-compressable (which is enabled by default for that storage). LZ4 compression is not trivially possible with extension API storage, as this requires the storage to support the saving ofBlob
resources. (An approach would be to create a special encoding/decoding step, but that is just not practical.)There is no technical obstacle to also use
IndexedDB
on Chromium. The main obstacle of doing so is that there is no code to automatically transfer cached items from one storage to the other, which would cause stale cache items to linger in the old storage should there be a switch to a new one for cache purpose.Provide code to move cache items stored in
chrome.storage.local
toIndexedDB
when uBO launches and detect thatIndexedDB
is being used as cache storage.The text was updated successfully, but these errors were encountered: