Are there performance benefits to storing in Local Storage over a JSON object in js? I would assume that it takes (slightly) longer to access, but bogs down the browser (slightly) less.
Any thoughts?
Are there performance benefits to storing in Local Storage over a JSON object in js? I would assume that it takes (slightly) longer to access, but bogs down the browser (slightly) less.
Any thoughts?
There is a test case at jsPerf which comes close: http://jsperf.com/localstorage-overhead
As far as I am concerned, I wouldn't bother moving my JS object to localStorage to free up memory. This seems like a overkill to me. Ideally, most of the stuff should be scoped inside functions and there should be as little stuff as possible in the global namespace(something that will live in memory for your app's entire lifetime).
Hope this helps.
500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED ID: cle1::jb6pz-1657137430039-36c293748085