Repository navigation
Add new searchsorted implementation - #4656
Merged
ajpotts merged 10 commits intoJul 21, 2025
Merged
Conversation
ShreyasKhandekar
force-pushed
the
improve-searchsorted
branch
2 times, most recently
from
July 1, 2025 00:02
3a6a53a to
36721ae
Compare
ShreyasKhandekar
force-pushed
the
improve-searchsorted
branch
from
July 1, 2025 22:57
c89a1ff to
5ac2dec
Compare
e-kayrakli
approved these changes
Jul 3, 2025
e-kayrakli
left a comment
Contributor
There was a problem hiding this comment.
I am good with this PR as is. I left some comments inline for your consideration. Thanks!
ShreyasKhandekar
force-pushed
the
improve-searchsorted
branch
2 times, most recently
from
July 7, 2025 23:27
dccd99e to
e0518e7
Compare
1RyanK
approved these changes
Jul 9, 2025
1RyanK
left a comment
Contributor
There was a problem hiding this comment.
I think it's safe to assume for now that either one locale won't end up with the whole search space, or that if it does, it won't be insanely large. In general I imagine that the number of things being searched for is significantly less than the number of things we're searching through. If users run into problems with this, we can revisit.
ShreyasKhandekar
force-pushed
the
improve-searchsorted
branch
2 times, most recently
from
July 11, 2025 21:32
910cc16 to
636f37e
Compare
ajpotts
reviewed
Jul 15, 2025
ShreyasKhandekar
force-pushed
the
improve-searchsorted
branch
from
July 17, 2025 23:21
6a376d6 to
00eb338
Compare
This is optimized for the case where x2 is also sorted Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
ShreyasKhandekar
force-pushed
the
improve-searchsorted
branch
from
July 17, 2025 23:22
00eb338 to
7f347f3
Compare
ajpotts
enabled auto-merge
July 21, 2025 19:04
ajpotts
approved these changes
Jul 21, 2025
ajpotts
added this pull request to the merge queue
Jul 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a new implementation for searchsorted that performs much better in the distributed case.
Currently it only kicks in when
x2is also sorted.This demonstrates much better weak scaling than the older implementation