I'm rethinking my former advice around web storage: localStorage reads are super fast since they read an in memory cache, writes are very slow. IndexedDB KV storage (like the built-in API proposal) has slow reads *and* writes and event loop delays on reads. @shubhie @_developit
-
Show this thread
-
For an app I'm looking at when localForage is in IDB mode there's a 150ms delay on reads (and TTI) because there's so much work in the event loop. When in localStorage mode the whole app loads faster since all reads are in memory map lookups inside the renderer.
2 replies 0 retweets 2 likesShow this thread -
Replying to @ElliottZ
Does that 150ms include opening the connection to the database? I think we need to benchmark reads with both an open connection and a closed connection.
3 replies 0 retweets 1 like
Replying to @philwalton @ElliottZ
/cc @inexorabletash
10:43 PM - 11 Mar 2019
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.