You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ADT] Restore handwritten vector find in SmallSet (#110254)
This patch restores handwritten linear searches instead of the use of
std::find.
After PR #109412, a performance regression was observed that's caused by
the use of std::find for linear searches.
The exact cause wasn't pinpointed, but, at the time of writing, the most
likely culprit is the forced loop unrolling in the definition of
libstdc++'s std::find. Presumably this is done to optimise for larger
containers.
However for the case of small containers such as SmallVector, this
actually hurts performance.
0 commit comments