deckarep / golang-set

A simple, battle-tested and generic set type for the Go language. Trusted by Docker, 1Password, Ethereum and Hashicorp.
Other
4.15k stars 274 forks source link

Adds some WithSize constructors and optimizes Clone #63

Closed deckarep closed 2 years ago

deckarep commented 6 years ago

BenchmarkClone100Unsafe-8 300000 23542 ns/op 5433 B/op 11 allocs/op BenchmarkClone100Unsafe-8 500000 14727 ns/op 2904 B/op 4 allocs/op

jeffwidman commented 2 years ago

This was closed because of the branch change from master to main. If this PR is still relevant, please re-open a PR with this code against main.