Skip to content

MONGOID-5805 Short-circuit the logic in extract_attribute to fix performance regression #5868

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 3 commits into from
Sep 23, 2024

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Sep 20, 2024

Fixes a performance regression caused by always splitting keys at . characters, whether the string has them or not. By short-circuiting the common case, we can recover a significant performance improvement.

@jamis jamis marked this pull request as ready for review September 20, 2024 21:39
@jamis jamis merged commit dc52d0e into mongodb:master Sep 23, 2024
61 checks passed
@jamis jamis deleted the 5805-performance-regression branch September 23, 2024 16:43
@jamis jamis added the bug Fixes a bug, with no new features or broken compatibility label Apr 10, 2025
@jamis jamis mentioned this pull request Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes a bug, with no new features or broken compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants