DEV Community

Explaining shallow / deep copying through acronyms

Michael Z on March 27, 2019

Originally posted at michaelzanggl.com. Subscribe to my newsletter to never miss out on new content. To understand shallow / deep copying let's ...
Collapse
 
luanf profile image
Luan Ferreira

I liked the way you transitioned the acronyms example into actual code. Well done!
If anyone is curious, here is a (non-exhaustive) benchmark list of possible Deep Copy implementations and approaches: jsben.ch/2gRXJ
There are definitely other factors to be considered, but it's interesting to see the benchmark.
And of course, everyone can add new tests to that link and generate more complete benchmarks, if one is so inclined.

Thanks for the article!