JSON-Patch icon indicating copy to clipboard operation
JSON-Patch copied to clipboard

`deepClone` by JSON.parse(JSON.stringify) is slower than traversing the object recursively

Open alshakero opened this issue 8 years ago • 3 comments

alshakero avatar May 18 '17 13:05 alshakero

Just one of the first google results for jsPerf.com https://jsperf.com/deep-copy-vs-json-stringify-json-parse/25

tomalec avatar May 19 '17 17:05 tomalec

I don't understand, on my machine, it's the second worst way

image

alshakero avatar May 19 '17 17:05 alshakero

Bumping this thread – any want for this still? Happy to dig in to this and contribute back if there is interest.

amiller-gh avatar Jul 07 '20 04:07 amiller-gh