Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid iteration when dropping
HashMap
s whose items don't need dropping
This changes the performance of `drop` from linear to constant time for such `HashMap`s. Closes #31711.
- Loading branch information