From 3edbde11c0f559a5f006609afe140a0926880eb3 Mon Sep 17 00:00:00 2001 From: vuule Date: Fri, 21 Apr 2023 14:29:32 -0700 Subject: [PATCH] use std array for statically sized vector --- cpp/src/io/utilities/trie.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/src/io/utilities/trie.cu b/cpp/src/io/utilities/trie.cu index d902cfecf40..16f32b1ce35 100644 --- a/cpp/src/io/utilities/trie.cu +++ b/cpp/src/io/utilities/trie.cu @@ -40,9 +40,9 @@ rmm::device_uvector create_serialized_trie(const std::vector::max() + 1; struct TreeTrieNode { - using TrieNodePtr = std::unique_ptr; - std::vector children = std::vector(alphabet_size); - bool is_end_of_word = false; + using TrieNodePtr = std::unique_ptr; + std::array children; + bool is_end_of_word = false; }; // Construct a tree-structured trie