Skip to content

Commit

Permalink
Merge #1093
Browse files Browse the repository at this point in the history
1093: Release rayon 1.8.0 and rayon-core 1.12.0 r=cuviper a=cuviper



Co-authored-by: Josh Stone <cuviper@gmail.com>
  • Loading branch information
bors[bot] and cuviper committed Sep 20, 2023
2 parents 082f215 + b3d9e3f commit 7449d7d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Expand Up @@ -89,7 +89,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.67.1
- uses: dtolnay/rust-toolchain@1.72.1
with:
components: rustfmt
- run: cargo fmt --all --check
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@1.67.1
- uses: dtolnay/rust-toolchain@1.72.1
with:
components: rustfmt
- run: cargo fmt --all --check
15 changes: 15 additions & 0 deletions RELEASES.md
@@ -1,3 +1,18 @@
# Release rayon 1.8.0 / rayon-core 1.12.0 (2023-09-20)

- The minimum supported `rustc` is now 1.63.
- Added `ThreadPoolBuilder::use_current_thread` to use the builder thread as
part of the new thread pool. That thread does not run the pool's main loop,
but it may participate in work-stealing if it yields to rayon in some way.
- Implemented `FromParallelIterator<T>` for `Box<[T]>`, `Rc<[T]>`, and
`Arc<[T]>`, as well as `FromParallelIterator<Box<str>>` and
`ParallelExtend<Box<str>>` for `String`.
- `ThreadPoolBuilder::build_scoped` now uses `std::thread::scope`.
- The default number of threads is now determined using
`std::thread::available_parallelism` instead of the `num_cpus` crate.
- The internal logging facility has been removed, reducing bloat for all users.
- Many smaller performance tweaks and documentation updates.

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

- The minimum supported `rustc` is now 1.59.
Expand Down
8 changes: 3 additions & 5 deletions rayon-core/src/sleep/mod.rs
Expand Up @@ -110,11 +110,9 @@ impl Sleep {

#[cold]
fn announce_sleepy(&self) -> JobsEventCounter {
let counters = self
.counters
.increment_jobs_event_counter_if(JobsEventCounter::is_active);
let jobs_counter = counters.jobs_counter();
jobs_counter
self.counters
.increment_jobs_event_counter_if(JobsEventCounter::is_active)
.jobs_counter()
}

#[cold]
Expand Down

0 comments on commit 7449d7d

Please sign in to comment.