davidmarkclements / rfdc

Really Fast Deep Clone
MIT License
635 stars 24 forks source link

chore: use a much faster implementation #1

Closed BridgeAR closed 6 years ago

BridgeAR commented 6 years ago

This improves the performance significantly. The proto option is almost obsolete now as it should be (V8 highly optimized this) and circular structures are not as costy anymore. Regular copying is also significantly faster, especially for arrays.

I also fixed linting issues while being on it.

davidmarkclements commented 6 years ago

niiiiice 👍