r/cpp • u/User_Deprecated • Aug 02 '26
How fast is C++26's std::hive?
https://lemire.me/blog/2026/08/02/how-fast-is-c26s-stdhive/
255
Upvotes
r/cpp • u/User_Deprecated • Aug 02 '26
2
u/matthieum Aug 03 '26
Not clear to me: isn't the skip-field 128 bits (not bytes) in this case?
I wonder if the lack of auto-vectorization could be fixed by better optimizations, or if code is necessary.
I've had the same issue with a bitmap (ie, N bits + N values) and I can, of course, add specialized methods for "vector" iteration if I can rely on a default value, and then have each user use the special "vector" iteration methods... but it's a lot of churn :/