-
Notifications
You must be signed in to change notification settings - Fork 3.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
opt: reduce allocations in OrderingSet.LongestCommonPrefix #86443
opt: reduce allocations in OrderingSet.LongestCommonPrefix #86443
Conversation
Previously, the `*OrderingChoice` returned by `LongestCommonPrefix` was allocated on the heap (except in the case where the ordering set contained a ordering choice that implies the given ordering). Now, `LongestCommonPrefix` returns a non-pointer type and avoids these allocations. Release justification: This is a minor change that improves performance. Release note: None
This provides a fairly significant improvement to the slow queries benchmarks:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @DrewKimball and @michae2)
TFTR! bors r+ |
Build failed (retrying...): |
Build failed (retrying...): |
Build succeeded: |
Previously, the
*OrderingChoice
returned byLongestCommonPrefix
wasallocated on the heap (except in the case where the ordering set
contained a ordering choice that implies the given ordering). Now,
LongestCommonPrefix
returns a non-pointer type and avoids theseallocations.
Release justification: This is a minor change that improves performance.
Release note: None