HashSet iteration on drop not elided for Copy elements #31711
Labels
A-collections
Area: `std::collections`
I-slow
Issue: Problems and improvements with respect to performance of generated code.
If a
HashSet
hasCopy
elements, it doesn't need to visit all elements on drop. The iteration in RawTable's drop still is computed even if the elements have no destructors, which leads to O(n) average complexity even then.The text was updated successfully, but these errors were encountered: