PSA: New Promise-based IndexedDB.jsm module
Michael de Boer
mdeboer at mozilla.com
Sun Mar 26 13:00:29 UTC 2017
> On 26 Mar 2017, at 13:44, Anne van Kesteren <annevk at annevk.nl> wrote:
> On Sun, Mar 26, 2017 at 11:03 AM, Dão Gottwald <dgottwald at mozilla.com> wrote:
>> Kris, what lead you to wanting to use IndexedDB here? What are the tradeoffs
>> compared to mozstorage or plain JSON (see sessionstore)?
> Not blocking on I/O seems pretty important, especially for UI. I'm
> surprised we don't make more use of it.
Since we have the OS.File module, we can have a non-blocking flat-file storage solution pretty easily. This is what sessionstore uses, and that component most certainly can’t use a blocking I/O storage layer.
More information about the firefox-dev