-
Notifications
You must be signed in to change notification settings - Fork 921
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
Improve strings contains/find performance for smaller strings #17330
Conversation
Benchmarks show significant speed up for shorter strings for scalar contains and find
|
The contains column API also showed significant improvement overall with this change.
The find column API showed only significant improvement with shorter strings
|
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.
Two suggestions, otherwise LGTM.
/merge |
38261f8
into
rapidsai:branch-25.02
Description
Replaces usage of
cudf::string_view::find()
with loop and call tocudf::string_view::compare()
where possible.This showed significant performance improvement.
This was also slightly faster than a KMP prototype implementation.
Also updates the find/contains benchmarks to remove the 2GB limit and include column versions of the find APIs.
Checklist