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:
1.5
->1.6
Release Notes
rayon-rs/rayon
v1.6.0
Compare Source
rustc
is now 1.56.IndexedParallelIterator::fold_chunks
andfold_chunks_with
methodswork like
ParallelIterator::fold
andfold_with
with fixed-size chunks ofitems. This may be useful for predictable batching performance, without the
allocation overhead of
IndexedParallelIterator::chunks
.These run at a sort of reduced priority after each thread has exhausted their
local work queue, but before they attempt work-stealing from other threads.
broadcast
function andThreadPool::broadcast
method willblock until completion, returning a
Vec
of all return values.spawn_broadcast
function and methods onThreadPool
,Scope
,and
ScopeFifo
will run detached, without blocking the current thread.#[track_caller]
to report the caller's location.vec::Drain
when given an empty range.Contributors
Thanks to all of the contributors for this release!
v1.5.3
Compare Source
ParallelSliceMut::par_sort_by_cached_key
is a stable sort that cachesthe keys for each item -- a parallel version of
slice::sort_by_cached_key
.v1.5.2
Compare Source
ParallelSlice::par_rchunks()
andpar_rchunks_exact()
iterateslice chunks in reverse, aligned the against the end of the slice if the
length is not a perfect multiple of the chunk size. The new
ParallelSliceMut::par_rchunks_mut()
andpar_rchunks_exact_mut()
are thesame for mutable slices.
ParallelIterator::try_*
methods now supportstd::ops::ControlFlow
andstd::task::Poll
items, mirroring the unstableTry
implementations in thestandard library.
ParallelString
pattern-based methods now support&[char]
patterns,which match when any character in that slice is found in the string.
thread pool, respecting internal bit limits that already existed. The current
maximum is publicly available from the new function
max_num_threads()
.cargo miri
.Contributors
Thanks to all of the contributors for this release!
v1.5.1
Compare Source
in_place_scope
andin_place_scope_fifo
are variations ofscope
and
scope_fifo
, running the initial non-Send
callback directly on thecurrent thread, rather than moving execution to the thread pool.
IntoParallelIterator
.FromParallelIterator
make it possible tocollect
complicated nestings of items.
FromParallelIterator<(A, B)> for (FromA, FromB)
works likeunzip
.FromParallelIterator<Either<L, R>> for (A, B)
works likepartition_map
.Range
andRangeInclusive
.FromParallelIterator
andParallelExtend
forVec<T>
now usesMaybeUninit<T>
internally to avoid creating anyreferences to uninitialized data.
ParallelBridge
fixed a bug with threads missing available work.Contributors
Thanks to all of the contributors for this release!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate. View repository job log here.