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 std::array for a statically sized vector in create_serialized_trie #13201

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

vuule
Copy link
Contributor

@vuule vuule commented Apr 21, 2023

Description

Finally found a chance to use std::array, and took it!

Checklist

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

@vuule vuule added cuIO cuIO issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 21, 2023
@vuule vuule self-assigned this Apr 21, 2023
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Apr 21, 2023
@vuule vuule marked this pull request as ready for review April 22, 2023 01:03
@vuule vuule requested a review from a team as a code owner April 22, 2023 01:03
@vuule vuule requested review from karthikeyann and ttnghia April 22, 2023 01:03
bool is_end_of_word = false;
using TrieNodePtr = std::unique_ptr<TreeTrieNode>;
std::array<TrieNodePtr, alphabet_size> children;
bool is_end_of_word = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sound like is_end_of_the_world 😂

Copy link
Contributor

@karthikeyann karthikeyann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@vuule
Copy link
Contributor Author

vuule commented Apr 25, 2023

/merge

@rapids-bot rapids-bot bot merged commit 7bbd5ee into rapidsai:branch-23.06 Apr 25, 2023
@vuule vuule deleted the trie-use-array branch April 25, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuIO cuIO issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants