Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Bump rayon from 1.5.3 to 1.7.0 #30981

Merged
merged 2 commits into from
Apr 7, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 30, 2023

Bumps rayon from 1.5.3 to 1.7.0.

Changelog

Sourced from rayon's changelog.

Release rayon 1.7.0 / rayon-core 1.11.0 (2023-03-03)

  • The minimum supported rustc is now 1.59.
  • Added a fallback when threading is unsupported.
  • The new ParallelIterator::take_any and skip_any methods work like unordered IndexedParallelIterator::take and skip, counting items in whatever order they are visited in parallel.
  • The new ParallelIterator::take_any_while and skip_any_while methods work like unordered Iterator::take_while and skip_while, which previously had no parallel equivalent. The "while" condition may be satisfied from anywhere in the parallel iterator, affecting all future items regardless of position.
  • The new yield_now and yield_local functions will cooperatively yield execution to Rayon, either trying to execute pending work from the entire pool or from just the local deques of the current thread, respectively.

Release rayon-core 1.10.2 (2023-01-22)

  • Fixed miri-reported UB for SharedReadOnly tags protected by a call.

Release rayon 1.6.1 (2022-12-09)

  • Simplified par_bridge to only pull one item at a time from the iterator, without batching. Threads that are waiting for iterator items will now block appropriately rather than spinning CPU. (Thanks @​njaard!)
  • Added protection against recursion in par_bridge, so iterators that also invoke rayon will not cause mutex recursion deadlocks.

Release rayon-core 1.10.1 (2022-11-18)

  • Fixed a race condition with threads going to sleep while a broadcast starts.

Release rayon 1.6.0 / rayon-core 1.10.0 (2022-11-18)

  • The minimum supported rustc is now 1.56.
  • The new IndexedParallelIterator::fold_chunks and fold_chunks_with methods work like ParallelIterator::fold and fold_with with fixed-size chunks of items. This may be useful for predictable batching performance, without the allocation overhead of IndexedParallelIterator::chunks.
  • New "broadcast" methods run a given function on all threads in the pool. 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.
    • The global broadcast function and ThreadPool::broadcast method will block until completion, returning a Vec of all return values.
    • The global spawn_broadcast function and methods on ThreadPool, Scope, and ScopeFifo will run detached, without blocking the current thread.
  • Panicking methods now use #[track_caller] to report the caller's location.
  • Fixed a truncated length in vec::Drain when given an empty range.

Contributors

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.5.3 to 1.7.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases)
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md)
- [Commits](rayon-rs/rayon@v1.5.3...rayon-core-v1.7.0)

---
updated-dependencies:
- dependency-name: rayon
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies rust Pull requests that update Rust code labels Mar 30, 2023
@CriesofCarrots
Copy link
Contributor

@ryoqun , do you mind looking at this version bump? Any concerns?

@CriesofCarrots CriesofCarrots requested a review from ryoqun April 3, 2023 17:48
Copy link
Contributor

@ryoqun ryoqun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

I reviewed rayon's changelog, commit log, actual diff of package contents. saw no concerns. it looks like most of changes are MSRV bump and new additions. there's potential perf impacting change of .par_bridge but it looks like we aren't using it.

@CriesofCarrots
Copy link
Contributor

lgtm

I reviewed rayon's changelog, commit log, actual diff of package contents. saw no concerns. it looks like most of changes are MSRV bump and new additions. there's potential perf impacting change of .par_bridge but it looks like we aren't using it.

Thank you!

@CriesofCarrots CriesofCarrots merged commit bcd43d7 into master Apr 7, 2023
@CriesofCarrots CriesofCarrots deleted the dependabot/cargo/rayon-1.7.0 branch April 7, 2023 05:27
@ilya-bobyr
Copy link
Contributor

Do you understand why the metrics step is consistently failing: https://buildkite.com/solana-labs/metrics-main-status/builds/11#01874f2f-bb61-4b10-af5b-24818dd02727
Would it affect other CI runs on master?

@CriesofCarrots
Copy link
Contributor

Do you understand why the metrics step is consistently failing: https://buildkite.com/solana-labs/metrics-main-status/builds/11#01874f2f-bb61-4b10-af5b-24818dd02727 Would it affect other CI runs on master?

I don't think that job was supposed to run as part of PR CI in the first place: #31000

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants