-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement search_sorted_many (#840)
Coming out of #823 , we find that search_sorted on BitPackedArray is slow due to wastefully re-building `BitPackedArray` This PR creates a new `search_sorted_bulk` that allows arrays to do some up-front initialization before doing loops of repeated searches, like `RunEndArray::find_physical_indices` We're still about ~50% slower than #823 , unpack_single + branch mispredicts (which I think is all of the self time in `search_sorted`) seem to be the slowdown <img width="3312" alt="image" src="https://github.com/user-attachments/assets/f28fbe65-285e-4db7-a6d4-41a35391f6ea">
- Loading branch information
Showing
8 changed files
with
361 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.