Yeah I'm confused as most of those methods, like postMessage, stringifies things anyway. I simply iterate other object properties to make a copy of a full object.
I've never run performance tests but surely that's faster than parsing an object into its string representation then parsing it back into the language, no?
As I explain in the article, postMessage does not stringify. It runs the structural clone algorithm, as per spec. Otherwise things like ArrayBuffers, Sets et al. would not make it to the other side.
I've never run performance tests but surely that's faster than parsing an object into its string representation then parsing it back into the language, no?