Skip to content
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

Use make_strings_children for fill() specialization logic #14697

Merged

Conversation

davidwendt
Copy link
Contributor

Description

Refactors the cudf::strings::detail::fill() function to use make_strings_children.
This refactors some duplicated logic and will help to enable large strings support.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. strings strings issues (C++ and Python) improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jan 2, 2024
@davidwendt davidwendt self-assigned this Jan 2, 2024
@davidwendt davidwendt requested a review from a team as a code owner January 2, 2024 20:45
@vuule
Copy link
Contributor

vuule commented Jan 3, 2024

What is the difference in behavior with 3de1ee5?
Looks like it's just calling copy_string with an empty string, I must be missing something.

@davidwendt
Copy link
Contributor Author

What is the difference in behavior with 3de1ee5? Looks like it's just calling copy_string with an empty string, I must be missing something.

Just a subtle improvement. The current commit only calls element() when necessary.
The previous commit called it for every row and threw it away if it was not needed.
This is more inline with original code as well.

@vuule
Copy link
Contributor

vuule commented Jan 3, 2024

What is the difference in behavior with 3de1ee5? Looks like it's just calling copy_string with an empty string, I must be missing something.

Just a subtle improvement. The current commit only calls element() when necessary. The previous commit called it for every row and threw it away if it was not needed. This is more inline with original code as well.

oh, that was not the fix for tests? I misunderstood and spent too much time staring at the diff. I'll take a look at the other new commit as well.

@davidwendt
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 5eb923f into rapidsai:branch-24.02 Jan 5, 2024
67 checks passed
@davidwendt davidwendt deleted the fill-make-strs-children branch January 5, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change strings strings issues (C++ and Python)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants