Skip to content

Commit

Permalink
chore(deps): update module github.com/puzpuzpuz/xsync to v3 (#1008)
Browse files Browse the repository at this point in the history
[![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

<details>
<summary>puzpuzpuz/xsync (github.com/puzpuzpuz/xsync)</summary>

### [`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
([#&#8203;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
([#&#8203;113](https://togithub.com/puzpuzpuz/xsync/issues/113))

Thanks [@&#8203;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
([#&#8203;111](https://togithub.com/puzpuzpuz/xsync/issues/111))

Thanks [@&#8203;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
([#&#8203;107](https://togithub.com/puzpuzpuz/xsync/issues/107),
[#&#8203;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 [@&#8203;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
([#&#8203;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`)
([#&#8203;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
([#&#8203;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`
([#&#8203;86](https://togithub.com/puzpuzpuz/xsync/issues/86))
- Fix potential iteration over duplicate keys in `Map`/`MapOf.Range`
([#&#8203;87](https://togithub.com/puzpuzpuz/xsync/issues/87) and
[#&#8203;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
([#&#8203;82](https://togithub.com/puzpuzpuz/xsync/issues/82))
- Report throughput metric in benchmarks
([#&#8203;81](https://togithub.com/puzpuzpuz/xsync/issues/81))
- Update benchmark results page
([#&#8203;83](https://togithub.com/puzpuzpuz/xsync/issues/83))

Thanks [@&#8203;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
([#&#8203;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
([#&#8203;76](https://togithub.com/puzpuzpuz/xsync/issues/76))
- Optimize `RBMutex` footprint and thread-to-slot distribution
([#&#8203;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
([#&#8203;71](https://togithub.com/puzpuzpuz/xsync/issues/71) and
[#&#8203;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
([#&#8203;64](https://togithub.com/puzpuzpuz/xsync/issues/64))
- Add Compute method to Map
([#&#8203;68](https://togithub.com/puzpuzpuz/xsync/issues/68) and
[#&#8203;69](https://togithub.com/puzpuzpuz/xsync/issues/69))
- Fix the second valueFn call in MapOf.LoadOrCompute
([#&#8203;66](https://togithub.com/puzpuzpuz/xsync/issues/66))

Thanks [@&#8203;psyhatter](https://togithub.com/psyhatter) and
[@&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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.

</details>

---

### 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.

---

- [ ] <!-- rebase-check -->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).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMjAuMiIsInVwZGF0ZWRJblZlciI6IjM3LjIyMC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] and github-actions[bot] authored Mar 4, 2024
1 parent f67174d commit cb2ac4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cb2ac4a

Please sign in to comment.