Closed emcfarlane closed 1 year ago
Removes allocations on Set operations. Added a single benchmark testing equality, should improve other set operations too.
Old: Benchmark/bench_set_equal-8 35050 34043 ns/op 16384 B/op 1 allocs/op
New: Benchmark/bench_set_equal-8 41312 28884 ns/op 0 B/op 0 allocs/op
Thanks for reviewing, sorry for the long delay in my changes to feedback too. Have removed the allocation changes but introduced some doc changes for go1.19. Please let me know if this should be separated out.
Removes allocations on Set operations. Added a single benchmark testing equality, should improve other set operations too.
Old: Benchmark/bench_set_equal-8 35050 34043 ns/op 16384 B/op 1 allocs/op
New: Benchmark/bench_set_equal-8 41312 28884 ns/op 0 B/op 0 allocs/op