Skip to content

perf: remove duplicative deep loops during field sanitization #12402

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

Merged
merged 5 commits into from
May 14, 2025

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented May 13, 2025

Optimizes the field sanitization process by removing duplicative deep loops over the config. We were previously iterating over all fields of each collection potentially multiple times in order validate field configs, check reserved field names, etc. Now, we perform all necessary sanitization within a single loop.

@jacobsfletch jacobsfletch changed the title perf: removes duplicative deep loops during field sanitization perf: remove duplicative deep loops during field sanitization May 14, 2025
@jacobsfletch jacobsfletch merged commit 93d79b9 into main May 14, 2025
78 checks passed
@jacobsfletch jacobsfletch deleted the perf/field-sanitization branch May 14, 2025 19:25
kendelljoseph pushed a commit that referenced this pull request May 15, 2025
Optimizes the field sanitization process by removing duplicative deep
loops over the config. We were previously iterating over all fields of
each collection potentially multiple times in order validate field
configs, check reserved field names, etc. Now, we perform all necessary
sanitization within a single loop.
Copy link
Contributor

🚀 This is included in version v3.38.0

kendelljoseph pushed a commit that referenced this pull request May 19, 2025
Optimizes the field sanitization process by removing duplicative deep
loops over the config. We were previously iterating over all fields of
each collection potentially multiple times in order validate field
configs, check reserved field names, etc. Now, we perform all necessary
sanitization within a single loop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants