I just published “Choo, architecture & performance”https://medium.com/p/choo-architecture-performance-f6f0c44e8a6a …
-
-
Replying to @yoshuawuyts
Hi! I see nanologger uses localStorage. Isn't it a problem? 1) performance — sync file I/O in browser, 2) Safari private mode=always 'info'
1 reply 0 retweets 2 likes -
Replying to @dchest
ohey, no I didn't know about the second one - the first one: localStorage is actually faster than IndexedDB, despite being synchronous
2 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
oh, sure, what I meant is that how much it slows down compared to not using local storage at all (e.g. window.__nanologgerLevel)
1 reply 0 retweets 1 like -
Replying to @dchest
localstorage is meant for development; that way you can set a loglevel while debugging and keep refreshing. Figured it'd be a good flow (:
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
I see, thanks. I just noticed that microcomponent uses it and looks like everyone using microcomponent will at least try reading ...
1 reply 0 retweets 0 likes -
Replying to @dchest @yoshuawuyts
... from localStorage on every local. Which is why I thought about performance.
1 reply 0 retweets 1 like
dang, yeah good point! - could you open an issue? Hadn't considered this haha
-
-
Replying to @yoshuawuyts0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.