What's Changed
- Utilizes map capacity hint in all constructors to minimize memory allocation churn with instantiation and population of Set - originally proposed by @fy0
- New
*WithSizeconstructors:NewThreadUnsafeSetWithSizeandNewSetWithSizeto allow for minimizing allocation churn and unnecessary resizing of internal state. - Adds a
RemoveAllconvenience method
Full Changelog
https://github.com/deckarep/golang-set/compare/v2.2.0...v2.3.0