4 ms·
But you said yourself, cookies are preferred by developers. So localstorage is not of greater preference.
by shawnz 7y ago
But you said yourself, cookies are preferred by developers. So localstorage is not of greater preference.
- austincheney 7y agoI never made such a claim, though I suspect localStorage would be preferred by end users since there is a distinctive performance difference.
- shawnz 7y agoYes you did: > The primary reason cookies are still preferred is due to developer ignorance. And furthermore: > localStorage would be preferred by end users since there is a distinctive performance difference I would think cookies would be more performant in the most common case of exchanging a session ID with the server. How would you even achieve that with localStorage besides grabbing all dynamic data with XHR requests after the page loads?
- austincheney 7y ago> I would think cookies would be more performant If you don't know don't guess. This is measurable. The primary reason cookies are so incredibly slow ot process is that they require parsing.
- shawnz 7y agoThen show me some benchmarks, I wasn't the one that made the claim
- austincheney 7y agoI don’t do research for people. If you lack the curiosity to seek out the answer then just disagree with me.
- shawnz 7y agoI am not asking you to do research. You said, "If you don't know, don't guess". You said that there is a measurable performance difference. So surely you know the numbers, and you're not just guessing, right?
- hundchenkatze 7y agoMeasurable in, what, a few hundred nanoseconds... I'm going to _guess_ that most people won't notice.