From cb2ac4a5ea7c4ab883bb63eb0e19f4752cd3d310 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 4 Mar 2024 12:27:43 +1100
Subject: [PATCH] chore(deps): update module github.com/puzpuzpuz/xsync to v3
(#1008)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/puzpuzpuz/xsync](https://togithub.com/puzpuzpuz/xsync) |
`v1.5.2` -> `v3.1.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fpuzpuzpuz%2fxsync/v3.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fpuzpuzpuz%2fxsync/v3.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fpuzpuzpuz%2fxsync/v1.5.2/v3.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fpuzpuzpuz%2fxsync/v1.5.2/v3.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
puzpuzpuz/xsync (github.com/puzpuzpuz/xsync)
### [`v3.1.0`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v3.1.0)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v3.0.2...v3.1.0)
- Use presized Map/MapOf argument as the minimal map capacity
([#121](https://togithub.com/puzpuzpuz/xsync/issues/121))
`NewMapPresized`/`NewMapOfPresized`'s argument is now treated as the
minimal table capacity. The underlying hash table won't shrink beyond
the specified capacity.
Also, fixes and improves godoc.
### [`v3.0.2`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v3.0.2)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v3.0.1...v3.0.2)
- Fix too aggressive Map/MapOf shrinking on deletion leading to out of
range panic
([#113](https://togithub.com/puzpuzpuz/xsync/issues/113))
Thanks [@mdumandag](https://togithub.com/mdumandag) for reporting
the issue.
### [`v3.0.1`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v3.0.1)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v3.0.0...v3.0.1)
- Fix lost updates on concurrent `Map`/`MapOf` resize
([#111](https://togithub.com/puzpuzpuz/xsync/issues/111))
Thanks [@klauspost](https://togithub.com/klauspost) for reporting
this issue.
### [`v3.0.0`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v3.0.0)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.5.1...v3.0.0)
- Replace the user-defined hash function in MapOf factories with a
built-in fast hash function
([#107](https://togithub.com/puzpuzpuz/xsync/issues/107),
[#108](https://togithub.com/puzpuzpuz/xsync/issues/108))
All `New*MapOf*` functions are now replaced with the `NewMapOf` and
`NewMapOfPresized` functions. There is no longer a need to provide a
user-defined hash function.
Kudos go to [@destel](https://togithub.com/destel)
### [`v2.5.1`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.5.1)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.5.0...v2.5.1)
- Speed up built-in string hash function
([#106](https://togithub.com/puzpuzpuz/xsync/issues/106))
### [`v2.5.0`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.5.0)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.4.1...v2.5.0)
- Add concurrent queue with generics support (`MPMCQueueOf`)
([#104](https://togithub.com/puzpuzpuz/xsync/issues/104))
### [`v2.4.1`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.4.1)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.4.0...v2.4.1)
- Fix nextPowOf2 on zero input
([#98](https://togithub.com/puzpuzpuz/xsync/issues/98))
- Fixes the initial capacity of maps presized to a very small capacity
(less than 3)
### [`v2.4.0`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.4.0)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.3.2...v2.4.0)
- Add presized constructors for `Map` and `MapOf`
([#86](https://togithub.com/puzpuzpuz/xsync/issues/86))
- Fix potential iteration over duplicate keys in `Map`/`MapOf.Range`
([#87](https://togithub.com/puzpuzpuz/xsync/issues/87) and
[#88](https://togithub.com/puzpuzpuz/xsync/issues/88))
### [`v2.3.2`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.3.2)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.3.1...v2.3.2)
- Optimize MapOf.Range
([#82](https://togithub.com/puzpuzpuz/xsync/issues/82))
- Report throughput metric in benchmarks
([#81](https://togithub.com/puzpuzpuz/xsync/issues/81))
- Update benchmark results page
([#83](https://togithub.com/puzpuzpuz/xsync/issues/83))
Thanks [@felixge](https://togithub.com/felixge) for holding a
comprehensive (and lengthy) benchmarks run.
### [`v2.3.1`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.3.1)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.3.0...v2.3.1)
- New MapOf design
([#78](https://togithub.com/puzpuzpuz/xsync/issues/78))
- `MapOf` now takes full advantage of Go generics: less GC pressure,
less atomic operations on reads, also improved integer hash function
- If you're into benchmarking, comparisons with other concurrent map
implementations are welcome (see
[this](https://togithub.com/cornelk/hashmap/pull/70) and
[this](https://togithub.com/alphadose/haxmap/pull/22) PRs as comparison
examples)
### [`v2.3.0`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.3.0)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.2.0...v2.3.0)
- Optimize `MapOf` integer hash function
([#76](https://togithub.com/puzpuzpuz/xsync/issues/76))
- Optimize `RBMutex` footprint and thread-to-slot distribution
([#75](https://togithub.com/puzpuzpuz/xsync/issues/75))
- This is a breaking change. `NewRBMutex()` function must be called now
to initialize a `RBMutex`.
### [`v2.2.0`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.2.0)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.1.0...v2.2.0)
- Optimize `Counter` thread-to-stripe distribution
([#71](https://togithub.com/puzpuzpuz/xsync/issues/71) and
[#74](https://togithub.com/puzpuzpuz/xsync/issues/74))
- This is a breaking change. `NewCounter()` function must be called now
to initialize a `Counter`.
### [`v2.1.0`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.1.0)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.0.2...v2.1.0)
- Add Clear method to Map and MapOf
([#64](https://togithub.com/puzpuzpuz/xsync/issues/64))
- Add Compute method to Map
([#68](https://togithub.com/puzpuzpuz/xsync/issues/68) and
[#69](https://togithub.com/puzpuzpuz/xsync/issues/69))
- Fix the second valueFn call in MapOf.LoadOrCompute
([#66](https://togithub.com/puzpuzpuz/xsync/issues/66))
Thanks [@psyhatter](https://togithub.com/psyhatter) and
[@veqryn](https://togithub.com/veqryn) for the contribution.
### [`v2.0.2`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.0.2)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.0.1...v2.0.2)
- Fix duplicate keys on intensive map insertion and deletion
([#63](https://togithub.com/puzpuzpuz/xsync/issues/63))
### [`v2.0.1`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.0.1)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v2.0.0...v2.0.1)
- Update version in package name
([#61](https://togithub.com/puzpuzpuz/xsync/issues/61))
### [`v2.0.0`](https://togithub.com/puzpuzpuz/xsync/releases/tag/v2.0.0)
[Compare
Source](https://togithub.com/puzpuzpuz/xsync/compare/v1.5.2...v2.0.0)
- Use hash/maphash instead of go:linkname hacks
([#56](https://togithub.com/puzpuzpuz/xsync/issues/56))
- This changes the `MapOf` API in favor of the standard `hash/maphash`
package. The main difference is in the `hasher` argument expected in the
`NewTypedMapOf` function.
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/TBD54566975/ftl).
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot]
---
go.mod | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/go.mod b/go.mod
index 0c12f8011a..406fa0c2b6 100644
--- a/go.mod
+++ b/go.mod
@@ -32,6 +32,7 @@ require (
github.com/mattn/go-isatty v0.0.20
github.com/oklog/ulid/v2 v2.1.0
github.com/otiai10/copy v1.14.0
+ github.com/puzpuzpuz/xsync v1.5.2
github.com/radovskyb/watcher v1.0.7
github.com/rs/cors v1.10.1
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1
@@ -85,7 +86,6 @@ require (
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
- github.com/puzpuzpuz/xsync v1.5.2
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b
github.com/swaggest/refl v1.3.0 // indirect