Skip to content
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(document): only call undoReset() 1x/document #15257

Merged
merged 2 commits into from
Feb 14, 2025
Merged

Conversation

vkarpov15
Copy link
Collaborator

Fix #15255

Summary

Right now we call $__undoReset() for every subdoc multiple times, because each $__undoReset() call recursively calls $__undoReset() on all of its subdocuments. So skip the recursive call for subdocuments.

Examples

@vkarpov15 vkarpov15 added this to the 8.10.1 milestone Feb 13, 2025
@vkarpov15 vkarpov15 merged commit 0a1cd39 into master Feb 14, 2025
75 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-15255 branch February 14, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document $__undoReset performance on deeply nested documents
2 participants