chore(deps): update module github.com/puzpuzpuz/xsync/v3 to v4 #2168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v3.5.1
->v4.1.0
Release Notes
puzpuzpuz/xsync (github.com/puzpuzpuz/xsync/v3)
v4.1.0
Compare Source
UMPSCQueue
#168LoadAndDelete
andDelete
in case of non-existingMap
key #167Map
resize #170UMPSCQueue
is meant to serve as a replacement for a channel. However, crucially, it has infinite capacity. This is a very bad idea in many cases as it means that it never exhibits backpressure. In other words, if nothing is consuming elements from the queue, it will eventually consume all available memory and crash the process. However, there are also cases where this is desired behavior as it means the queue will dynamically allocate more memory to store temporary bursts, allowing producers to never block while the consumer catches up.From now on,
Map
spawns additional goroutines to speed up resizing the hash table. This can be disabled when creating aMap
with the newWithSerialResize
setting:Thanks @PapaCharlie and @llxisdsh for the contributions!
v4.0.0
Compare Source
MapOf
's hasher API is gone. The default and only hash function is now based onmaphash.Comparable
.Map
'sCompute
API now supports no-op (cancel) compute operation.Thanks @PapaCharlie for making this release happen
Migration notes
*Of
types are kept as type aliases for the renamed data structures to simplify the migration, e.g.MapOf
is an alias forMap
.NewMapOfPresized
function is gone.NewMap
combined withWithPresize
should be used instead.Map.Compute
method now expectsvalueFn
to return aComputeOp
value instead of a boolean flag. That's to support compute operation cancellation, so that the call does nothing.Map.LoadOrTryCompute
method is renamed toLoadOrCompute
. The oldLoadOrCompute
method is removed as it was redundant.Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (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.
This PR was generated by Mend Renovate. View the repository job log.