r/cpp • • 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

74 comments sorted by

View all comments

1

u/FrogNoPants Aug 03 '26

I would have thought iterating over a hive could use a bitscan and therefore not be so slow, looking at the iterator impl I don't see any indication of bitscan, it looks abit overcomplicated.

1

u/HappyFruitTree Oct 16 '26

It uses a "skipfield" instead.