The actual memory footprint of static_map is larger than my estimation #650
-
Hi, I find the memory footprint of cuco::static_map is significantly larger than its theoretical size ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
After a few tests, I find the real reason is memory alignment issue. |
Beta Was this translation helpful? Give feedback.
The alignment of your key and payload types can be one factor, while another is that cuco hash tables ensure the requested capacity serves as a lower bound. They select the smallest prime number greater than the requested capacity as the actual capacity. see
cuCollections/include/cuco/extent.cuh
Lines 95 to 99 in 93d6172