Skip to content

Use make_strings_children for fill() specialization logic - #14697

Merged
rapids-bot[bot] merged 4 commits into
NVIDIA:branch-24.02from
davidwendt:fill-make-strs-children
Jan 5, 2024
Merged

Use make_strings_children for fill() specialization logic#14697
rapids-bot[bot] merged 4 commits into
NVIDIA:branch-24.02from
davidwendt:fill-make-strs-children

Conversation

@davidwendt

Copy link
Copy Markdown
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

vuule commented Jan 3, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

vuule commented Jan 3, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit 5eb923f into NVIDIA:branch-24.02 Jan 5, 2024
@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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants