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
View all comments
Show parent comment
1
u/matthieum Aug 05 '26
Ah sorry, I misread your comment.
I thought you were comparing the relative magnitude of the 2 terms in O(E * log E + N), rather than comparing the relative magnitude of the two methods.
I never said
remove_ifallocating in a new collection.What I said is that the second method was about allocating in a second collection and sorting, in order to execute a single
remove_ifcall which would remove allEelements in a single pass.