Use async storage instead of localstorage#9919
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
62f2d59 to
b4c8f7d
Compare
Gudahtt
left a comment
There was a problem hiding this comment.
This looks fantastic! The new storage-helper API is much nicer.
Even if this doesn't help the related issue at all, using IndexedDB over Local Storage seems like an improvement, so that we aren't synchronously saving large objects.
|
Q: I'm wondering if we should move the new module into |
This comment has been minimized.
This comment has been minimized.
a0bb18f to
cfd1848
Compare
I'll experiment with that. It should work seamlessly, as |
Gudahtt
left a comment
There was a problem hiding this comment.
LGTM!
We don't use the local storage API in the background, so this seems fine in just the UI for now. The background uses the similar-but-different storage.local extension API, which is already async.
This may help with #9821
Explanation:
At present, we're setting and getting lots of data via localStorage, which is synchronous and can be slow. This is an attempt at using indexedDB and make everything async.