Skip to content

Releases: marpit19/goquickmap

v1.1.0 - Batch Operations and Configurable Capacity

08 Sep 10:54
ac89bdf
Compare
Choose a tag to compare

v1.1.0 - Batch Operations and Configurable Capacity

This release introduces two major features to improve performance and flexibility:

New Features

  1. Batch Operations:

    • InsertMany / SetMany: Efficiently insert multiple key-value pairs at once.
    • DeleteMany: Remove multiple keys in a single operation.
    • Available for QuickMap, QuickSet, and QuickDict.
  2. Configurable Initial Capacity:

    • NewWithCapacity: Create data structures with a specified initial capacity.
    • Allows for performance optimization when the approximate size is known in advance.

Improvements

  • Enhanced documentation with godoc comments for all exported types and functions.
  • Added comprehensive examples in the cmd/demo directory.

Performance

Benchmark results show significant performance improvements for bulk operations:

  • Batch insertions are up to 10x faster than individual insertions for large datasets.
  • Batch deletions show similar performance gains.

Breaking Changes

None. This release is fully backward compatible.

Upgrading

To upgrade, run:

go get github.com/marpit19/[email protected]

Please report any issues or suggestions on our GitHub issue tracker.