Skip to content

Commit 7449d7d

Browse files
bors[bot]cuviper
andauthored
Merge #1093
1093: Release rayon 1.8.0 and rayon-core 1.12.0 r=cuviper a=cuviper Co-authored-by: Josh Stone <[email protected]>
2 parents 082f215 + b3d9e3f commit 7449d7d

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
runs-on: ubuntu-latest
9090
steps:
9191
- uses: actions/checkout@v3
92-
- uses: dtolnay/rust-toolchain@1.67.1
92+
- uses: dtolnay/rust-toolchain@1.72.1
9393
with:
9494
components: rustfmt
9595
- run: cargo fmt --all --check

.github/workflows/pr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- uses: actions/checkout@v3
35-
- uses: dtolnay/rust-toolchain@1.67.1
35+
- uses: dtolnay/rust-toolchain@1.72.1
3636
with:
3737
components: rustfmt
3838
- run: cargo fmt --all --check

RELEASES.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Release rayon 1.8.0 / rayon-core 1.12.0 (2023-09-20)
2+
3+
- The minimum supported `rustc` is now 1.63.
4+
- Added `ThreadPoolBuilder::use_current_thread` to use the builder thread as
5+
part of the new thread pool. That thread does not run the pool's main loop,
6+
but it may participate in work-stealing if it yields to rayon in some way.
7+
- Implemented `FromParallelIterator<T>` for `Box<[T]>`, `Rc<[T]>`, and
8+
`Arc<[T]>`, as well as `FromParallelIterator<Box<str>>` and
9+
`ParallelExtend<Box<str>>` for `String`.
10+
- `ThreadPoolBuilder::build_scoped` now uses `std::thread::scope`.
11+
- The default number of threads is now determined using
12+
`std::thread::available_parallelism` instead of the `num_cpus` crate.
13+
- The internal logging facility has been removed, reducing bloat for all users.
14+
- Many smaller performance tweaks and documentation updates.
15+
116
# Release rayon 1.7.0 / rayon-core 1.11.0 (2023-03-03)
217

318
- The minimum supported `rustc` is now 1.59.

rayon-core/src/sleep/mod.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,9 @@ impl Sleep {
110110

111111
#[cold]
112112
fn announce_sleepy(&self) -> JobsEventCounter {
113-
let counters = self
114-
.counters
115-
.increment_jobs_event_counter_if(JobsEventCounter::is_active);
116-
let jobs_counter = counters.jobs_counter();
117-
jobs_counter
113+
self.counters
114+
.increment_jobs_event_counter_if(JobsEventCounter::is_active)
115+
.jobs_counter()
118116
}
119117

120118
#[cold]

0 commit comments

Comments
 (0)