Releases: marpit19/goquickmap
Releases · marpit19/goquickmap
v1.1.0 - Batch Operations and Configurable Capacity
v1.1.0 - Batch Operations and Configurable Capacity
This release introduces two major features to improve performance and flexibility:
New Features
-
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.
-
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.