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

Avoid storing a separate entry in schema subpaths for every element in an array #13953

Merged
merged 6 commits into from Oct 10, 2023

Conversation

vkarpov15
Copy link
Collaborator

Summary

In fix for #3265, we made it so that we store an entry in subpaths for every element in an array, presumably to help make it easier to look up array paths. With a little bit of changes, it turns out this is unnecessary; and, as #13874 pointed out, adding an entry to subpaths for every element in an array can be considered a memory leak.

Examples

lib/schema.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (aside from the other threads)

Copy link
Collaborator

@IslandRhythms IslandRhythms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Be sure to fix the lint.

@vkarpov15 vkarpov15 merged commit 642abd1 into master Oct 10, 2023
41 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13874 branch October 10, 2023 19:06
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.

None yet

4 participants