Skip to content

SwiftCollections v5.1.0

Choose a tag to compare

@mrdav30 mrdav30 released this 22 Jun 02:34
· 1 commit to main since this release
  • Added hot-path scratch sorting support with SwiftList<T>.SortInPlace(...).
  • Added sparse key export helpers for deterministic scratch workflows:
    • SwiftSparseSet.CopyKeysTo(...)
    • SwiftSparseSet.CopySortedKeysTo(...)
    • SwiftSparseMap<T>.CopyKeysTo(...)
    • SwiftSparseMap<T>.CopySortedKeysTo(...)
  • Optimized known-count range ingestion across list, queue, sorted list, observable list, and 2D array paths to reduce temporary allocations and repeated resize work.
  • Improved SwiftSortedList<T>.AddRange(...) so known-count sources can reuse existing capacity instead of materializing unnecessary temporary arrays.
  • Added benchmark coverage for scratch sorting and sparse sorted-key export workloads.
  • Updated docs and tests around no-allocation sorting, sparse key copying, and range ingestion behavior.

Breaking change: replaced the older SwiftList<T>.Sort(...) API shape with the explicit SortInPlace(...) naming.