3 ms·
> In order to appear snappy, web browsers load the data into memory on the first request – which could mean a lot of memory use if lots of tabs do it > localSt
by dspillett 15y ago
> In order to appear snappy, web browsers load the data into memory on the first request – which could mean a lot of memory use if lots of tabs do it
> localStorage is persistent. If you don’t use a service or never visit a web site again, the data is still loaded when you start the browser
That can't be right can it? I can see the data always being on disk until explicitly cleared, but if a browser is loading it all for all sites from disk on launch I'd call that a significant memory and I/O management bug in the browser.
- acqq 15y agoEven stranger is their conclusion that key/value is certainly slower than the full-fledged SQL database. I just can't be. Somebody doesn't understand something basic, and if it's I, please make me see.
- huggyface 15y agoThis came up in a prior localstorage discussion as well, with a participant linking to - https://blog.mozilla.com/tglek/2012/02/22/psa-dom-local-storage-considered-harmful/ https://blog.mozilla.com/tglek/2012/02/22/psa-dom-local-stor... Big Mozilla fan, but they need to stop criticizing APIs for implementation details (whether WebSQL and now localstorage).