Skip to content

Releases: deckarep/golang-set

v2.6.0 - Adds ContainsOne method to mitigate allocations

26 Dec 19:18
4a7d053
Compare
Choose a tag to compare

What's Changed

  • Adds ContainsOne method to mitigate allocation as discussed in: #118
  • Comprehensive benchmarks and unit-tests added to warrant and prove this change out
  • Brought to you by: @vladvalkov - Thank You and Happy Holidays! 🎊 🍾

Full Changelog

v2.5.0...v2.6.0

v2.5.0 - Adds generic Sorted method to easily get elements into a sorted slice.

29 Nov 22:25
5ff637d
Compare
Choose a tag to compare

What's Changed

  • Add Sorted method - easily get elements of a set into a sorted slice.
  • Move to own file that can be build tagged
  • Also test go 1.21

Full Changelog

v2.4.0...v2.5.0

v2.4.0 - Improvements/fixes to docs and a new IsEmpty method.

21 Nov 17:42
208a228
Compare
Choose a tag to compare

What's Changed

  • Docs were fixed for the Union method - prepared by @ravanscafi
  • Install instructions added to README.MD - prepared by @cemremengu
  • New IsEmpty method added - prepared by @Jibaru

Full Changelog

v2.3.1...v2.4.0

Patch Release: Bug fix affecting JSON deserialization

02 Aug 21:33
b20691d
Compare
Choose a tag to compare

What's Changed

  • After a simplification previous refactor to get rid of one layer of indirection a bug was introduced that affected JSON unmarshaling that resulted in a panic - fix prepared by @fujie-xiyou

Full Changelog

v2.3.0...v2.3.1

Minor Release: Performance optimization to minimize memory allocs on allocation of Set

14 Mar 17:30
456a496
Compare
Choose a tag to compare

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 *WithSize constructors: NewThreadUnsafeSetWithSize and NewSetWithSize to allow for minimizing allocation churn and unnecessary resizing of internal state.
  • Adds a RemoveAll convenience method

Full Changelog

v2.2.0...v2.3.0

Minor release: better docs, small optimizations, additional convenience methods and constructors.

05 Mar 20:49
d9a5ce2
Compare
Choose a tag to compare

What's Changed

  • Streamline pointer indirection, and docs and optimized Clear method by @fakefloordiv
  • NewSetFromMapKeys and NewThreadUnsafeSetFromMapKeys convenience constructor methods by @jay-babu
  • Append method for adding multiple elements in a single command by @SignorMercurio

Full Changelog

v2.1.0...v2.2.0

Major release with generics support

03 Apr 21:48
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

Fixes Threadsafe bug in PowerSet

15 Sep 02:17
Compare
Choose a tag to compare
  • Fixes PowerSet functionality which previously caused panic
  • Adds additional unit-testing

Fixes and new API additions.

05 Nov 20:34
Compare
Choose a tag to compare
  • Includes Go cleanup.
  • New .Each iteration method.
  • Locking semantic fixes.

Fixes to locking and OrderedPair

02 Feb 20:32
Compare
Choose a tag to compare
  • Includes fixes to deadlock
  • Robustness around locking
  • The exporting of OrderedPairs.