-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: update deepCopy #4364
perf: update deepCopy #4364
Conversation
Thumbs up for the effort, love to see you take this on! 💯 The implementation seems very quick indeed. I would perhaps consider sticking with lodash's cloneDeep if only for the maintainability, and the fact we're using lodash in many places already. Importing it from within |
@mieky in frontend we actually want to get rid of |
Got released with |
* perf: update deepCopy * fix: using deepCopy in core and cli packages * fix: using deepCopy in editor * chore: formatting * fix: some micro optimisation in deepCopy
JSON.parse(JSON.stringify(object))
has a very low performancecheck the benchmarks here:
http://jsben.ch/WRTkU