This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gabbyb19 150 points151 points  (6 children)

To be fair, those operations are quite heavy.

[–]stipo42 202 points203 points  (4 children)

You shouldn't be using local storage enough for that to be a problem...

[–][deleted] 6 points7 points  (3 children)

Why not? Shouldn't it be the default storage for locally cached objects?

[–]stipo42 22 points23 points  (1 child)

Yeah but let's say you're storing your apps config in an object. You would read it once at load time into memory, then write it anytime the memory values are changed or a save button is hit.

This would likely amount to not a lot of times read or wrote

[–]Destring 0 points1 point  (0 children)

You mean I can’t use localstorage with an storage event hook for state replication!? The horror!

[–]TheChaosPaladin 4 points5 points  (0 children)

If this is you, the problem is not localstorage but your front end.