Debian Codegraph @

debian/rust-vendor/rayon/RELEASES.md

raw
1 # Release rayon 1.12.0 (2026-04-13)
2
3 - Fixed a bug in parallel `Range<char>` when the end is 0xE000, just past the
4 surrogate boundary, which was unsafely producing invalid `char` values.
5 - The new method `ParallelSlice::par_array_windows` works like `par_windows`
6 but with a constant length, producing `&[T; N]` items.
7
8 # Release rayon 1.11.0 / rayon-core 1.13.0 (2025-08-12)
9
10 - The minimum supported `rustc` is now 1.80.
11 - `iter::repeatn` has been renamed to `iter::repeat_n` to match the name
12 stabilized in the standard library. The old name still exists as a deprecated
13 function for compatibility.
14 - Fixed a bug in `in_place_scope` when the default global registry uses the
15 current thread, like on WebAssembly without threading support.
16 - `binary_heap::Iter` no longer requires a temporary allocation.
17 - Relaxed trait bounds on many of the public structs.
18 - Implemented `IntoParallelIterator for Box<[T]>` and its references.
19 - Implemented `FromParallelIterator<_> for Box<str>` via `String`.
20
21 # Release rayon 1.10.0 (2024-03-23)
22
23 - The new methods `ParallelSlice::par_chunk_by` and
24 `ParallelSliceMut::par_chunk_by_mut` work like the slice methods `chunk_by`
25 and `chunk_by_mut` added in Rust 1.77.
26
27 # Release rayon 1.9.0 (2024-02-27)
28
29 - The new methods `IndexedParallelIterator::by_exponential_blocks` and
30 `by_uniform_blocks` allow processing items in smaller groups at a time.
31 - The new `iter::walk_tree`, `walk_tree_prefix`, and `walk_tree_postfix`
32 functions enable custom parallel iteration over tree-like structures.
33 - The new method `ParallelIterator::collect_vec_list` returns items as a linked
34 list of vectors, which is an efficient mode of parallel collection used by
35 many of the internal implementations of `collect`.
36 - The new methods `ParallelSliceMut::par_split_inclusive_mut`,
37 `ParallelSlice::par_split_inclusive`, and
38 `ParallelString::par_split_inclusive` all work like a normal split but
39 keeping the separator as part of the left slice.
40 - The new `ParallelString::par_split_ascii_whitespace` splits only on ASCII
41 whitespace, which is faster than including Unicode multi-byte whitespace.
42 - `OsString` now implements `FromParallelIterator<_>` and `ParallelExtend<_>`
43 for a few item types similar to the standard `FromIterator` and `Extend`.
44 - The internal `Pattern` trait for string methods is now implemented for
45 `[char; N]` and `&[char; N]`, matching any of the given characters.
46
47 # Release rayon 1.8.1 / rayon-core 1.12.1 (2024-01-17)
48
49 - The new `"web_spin_lock"` crate feature makes mutexes spin on the main
50 browser thread in WebAssembly, rather than suffer an error about forbidden
51 `atomics.wait` if they were to block in that context. Thanks @RReverser!
52
53 # Release rayon 1.8.0 / rayon-core 1.12.0 (2023-09-20)
54
55 - The minimum supported `rustc` is now 1.63.
56 - Added `ThreadPoolBuilder::use_current_thread` to use the builder thread as
57 part of the new thread pool. That thread does not run the pool's main loop,
58 but it may participate in work-stealing if it yields to rayon in some way.
59 - Implemented `FromParallelIterator<T>` for `Box<[T]>`, `Rc<[T]>`, and
60 `Arc<[T]>`, as well as `FromParallelIterator<Box<str>>` and
61 `ParallelExtend<Box<str>>` for `String`.
62 - `ThreadPoolBuilder::build_scoped` now uses `std::thread::scope`.
63 - The default number of threads is now determined using
64 `std::thread::available_parallelism` instead of the `num_cpus` crate.
65 - The internal logging facility has been removed, reducing bloat for all users.
66 - Many smaller performance tweaks and documentation updates.
67
68 # Release rayon 1.7.0 / rayon-core 1.11.0 (2023-03-03)
69
70 - The minimum supported `rustc` is now 1.59.
71 - Added a fallback when threading is unsupported.
72 - The new `ParallelIterator::take_any` and `skip_any` methods work like
73 unordered `IndexedParallelIterator::take` and `skip`, counting items in
74 whatever order they are visited in parallel.
75 - The new `ParallelIterator::take_any_while` and `skip_any_while` methods work
76 like unordered `Iterator::take_while` and `skip_while`, which previously had
77 no parallel equivalent. The "while" condition may be satisfied from anywhere
78 in the parallel iterator, affecting all future items regardless of position.
79 - The new `yield_now` and `yield_local` functions will cooperatively yield
80 execution to Rayon, either trying to execute pending work from the entire
81 pool or from just the local deques of the current thread, respectively.
82
83 # Release rayon-core 1.10.2 (2023-01-22)
84
85 - Fixed miri-reported UB for SharedReadOnly tags protected by a call.
86
87 # Release rayon 1.6.1 (2022-12-09)
88
89 - Simplified `par_bridge` to only pull one item at a time from the iterator,
90 without batching. Threads that are waiting for iterator items will now block
91 appropriately rather than spinning CPU. (Thanks @njaard!)
92 - Added protection against recursion in `par_bridge`, so iterators that also
93 invoke rayon will not cause mutex recursion deadlocks.
94
95 # Release rayon-core 1.10.1 (2022-11-18)
96
97 - Fixed a race condition with threads going to sleep while a broadcast starts.
98
99 # Release rayon 1.6.0 / rayon-core 1.10.0 (2022-11-18)
100
101 - The minimum supported `rustc` is now 1.56.
102 - The new `IndexedParallelIterator::fold_chunks` and `fold_chunks_with` methods
103 work like `ParallelIterator::fold` and `fold_with` with fixed-size chunks of
104 items. This may be useful for predictable batching performance, without the
105 allocation overhead of `IndexedParallelIterator::chunks`.
106 - New "broadcast" methods run a given function on all threads in the pool.
107 These run at a sort of reduced priority after each thread has exhausted their
108 local work queue, but before they attempt work-stealing from other threads.
109 - The global `broadcast` function and `ThreadPool::broadcast` method will
110 block until completion, returning a `Vec` of all return values.
111 - The global `spawn_broadcast` function and methods on `ThreadPool`, `Scope`,
112 and `ScopeFifo` will run detached, without blocking the current thread.
113 - Panicking methods now use `#[track_caller]` to report the caller's location.
114 - Fixed a truncated length in `vec::Drain` when given an empty range.
115
116 ## Contributors
117
118 Thanks to all of the contributors for this release!
119
120 - @cuviper
121 - @idanmuze
122 - @JoeyBF
123 - @JustForFun88
124 - @kianmeng
125 - @kornelski
126 - @ritchie46
127 - @ryanrussell
128 - @steffahn
129 - @TheIronBorn
130 - @willcrozi
131
132 # Release rayon 1.5.3 (2022-05-13)
133
134 - The new `ParallelSliceMut::par_sort_by_cached_key` is a stable sort that caches
135 the keys for each item -- a parallel version of `slice::sort_by_cached_key`.
136
137 # Release rayon-core 1.9.3 (2022-05-13)
138
139 - Fixed a use-after-free race in job notification.
140
141 # Release rayon 1.5.2 / rayon-core 1.9.2 (2022-04-13)
142
143 - The new `ParallelSlice::par_rchunks()` and `par_rchunks_exact()` iterate
144 slice chunks in reverse, aligned the against the end of the slice if the
145 length is not a perfect multiple of the chunk size. The new
146 `ParallelSliceMut::par_rchunks_mut()` and `par_rchunks_exact_mut()` are the
147 same for mutable slices.
148 - The `ParallelIterator::try_*` methods now support `std::ops::ControlFlow` and
149 `std::task::Poll` items, mirroring the unstable `Try` implementations in the
150 standard library.
151 - The `ParallelString` pattern-based methods now support `&[char]` patterns,
152 which match when any character in that slice is found in the string.
153 - A soft limit is now enforced on the number of threads allowed in a single
154 thread pool, respecting internal bit limits that already existed. The current
155 maximum is publicly available from the new function `max_num_threads()`.
156 - Fixed several Stacked Borrow and provenance issues found by `cargo miri`.
157
158 ## Contributors
159
160 Thanks to all of the contributors for this release!
161
162 - @atouchet
163 - @bluss
164 - @cuviper
165 - @fzyzcjy
166 - @nyanzebra
167 - @paolobarbolini
168 - @RReverser
169 - @saethlin
170
171 # Release rayon 1.5.1 / rayon-core 1.9.1 (2021-05-18)
172
173 - The new `in_place_scope` and `in_place_scope_fifo` are variations of `scope`
174 and `scope_fifo`, running the initial non-`Send` callback directly on the
175 current thread, rather than moving execution to the thread pool.
176 - With Rust 1.51 or later, arrays now implement `IntoParallelIterator`.
177 - New implementations of `FromParallelIterator` make it possible to `collect`
178 complicated nestings of items.
179 - `FromParallelIterator<(A, B)> for (FromA, FromB)` works like `unzip`.
180 - `FromParallelIterator<Either<L, R>> for (A, B)` works like `partition_map`.
181 - Type inference now works better with parallel `Range` and `RangeInclusive`.
182 - The implementation of `FromParallelIterator` and `ParallelExtend` for
183 `Vec<T>` now uses `MaybeUninit<T>` internally to avoid creating any
184 references to uninitialized data.
185 - `ParallelBridge` fixed a bug with threads missing available work.
186
187 ## Contributors
188
189 Thanks to all of the contributors for this release!
190
191 - @atouchet
192 - @cuviper
193 - @Hywan
194 - @iRaiko
195 - @Qwaz
196 - @rocallahan
197
198 # Release rayon 1.5.0 / rayon-core 1.9.0 (2020-10-21)
199
200 - Update crossbeam dependencies.
201 - The minimum supported `rustc` is now 1.36.
202
203 ## Contributors
204
205 Thanks to all of the contributors for this release!
206
207 - @cuviper
208 - @mbrubeck
209 - @mrksu
210
211 # Release rayon 1.4.1 (2020-09-29)
212
213 - The new `flat_map_iter` and `flatten_iter` methods can be used to flatten
214 sequential iterators, which may perform better in cases that don't need the
215 nested parallelism of `flat_map` and `flatten`.
216 - The new `par_drain` method is a parallel version of the standard `drain` for
217 collections, removing items while keeping the original capacity. Collections
218 that implement this through `ParallelDrainRange` support draining items from
219 arbitrary index ranges, while `ParallelDrainFull` always drains everything.
220 - The new `positions` method finds all items that match the given predicate and
221 returns their indices in a new iterator.
222
223 # Release rayon-core 1.8.1 (2020-09-17)
224
225 - Fixed an overflow panic on high-contention workloads, for a counter that was
226 meant to simply wrap. This panic only occurred with debug assertions enabled,
227 and was much more likely on 32-bit targets.
228
229 # Release rayon 1.4.0 / rayon-core 1.8.0 (2020-08-24)
230
231 - Implemented a new thread scheduler, [RFC 5], which uses targeted wakeups for
232 new work and for notifications of completed stolen work, reducing wasteful
233 CPU usage in idle threads.
234 - Implemented `IntoParallelIterator for Range<char>` and `RangeInclusive<char>`
235 with the same iteration semantics as Rust 1.45.
236 - Relaxed the lifetime requirements of the initial `scope` closure.
237
238 [RFC 5]: https://github.com/rayon-rs/rfcs/pull/5
239
240 ## Contributors
241
242 Thanks to all of the contributors for this release!
243
244 - @CAD97
245 - @cuviper
246 - @kmaork
247 - @nikomatsakis
248 - @SuperFluffy
249
250
251 # Release rayon 1.3.1 / rayon-core 1.7.1 (2020-06-15)
252
253 - Fixed a use-after-free race in calls blocked between two rayon thread pools.
254 - Collecting to an indexed `Vec` now drops any partial writes while unwinding,
255 rather than just leaking them. If dropping also panics, Rust will abort.
256 - Note: the old leaking behavior is considered _safe_, just not ideal.
257 - The new `IndexedParallelIterator::step_by()` adapts an iterator to step
258 through items by the given count, like `Iterator::step_by()`.
259 - The new `ParallelSlice::par_chunks_exact()` and mutable equivalent
260 `ParallelSliceMut::par_chunks_exact_mut()` ensure that the chunks always have
261 the exact length requested, leaving any remainder separate, like the slice
262 methods `chunks_exact()` and `chunks_exact_mut()`.
263
264 ## Contributors
265
266 Thanks to all of the contributors for this release!
267
268 - @adrian5
269 - @bluss
270 - @cuviper
271 - @FlyingCanoe
272 - @GuillaumeGomez
273 - @matthiasbeyer
274 - @picoHz
275 - @zesterer
276
277
278 # Release rayon 1.3.0 / rayon-core 1.7.0 (2019-12-21)
279
280 - Tuples up to length 12 now implement `IntoParallelIterator`, creating a
281 `MultiZip` iterator that produces items as similarly-shaped tuples.
282 - The `--cfg=rayon_unstable` supporting code for `rayon-futures` is removed.
283 - The minimum supported `rustc` is now 1.31.
284
285 ## Contributors
286
287 Thanks to all of the contributors for this release!
288
289 - @cuviper
290 - @c410-f3r
291 - @silwol
292
293
294 # Release rayon-futures 0.1.1 (2019-12-21)
295
296 - `Send` bounds have been added for the `Item` and `Error` associated types on
297 all generic `F: Future` interfaces. While technically a breaking change, this
298 is a soundness fix, so we are not increasing the semantic version for this.
299 - This crate is now deprecated, and the `--cfg=rayon_unstable` supporting code
300 will be removed in `rayon-core 1.7.0`. This only supported the now-obsolete
301 `Future` from `futures 0.1`, while support for `std::future::Future` is
302 expected to come directly in `rayon-core` -- although that is not ready yet.
303
304 ## Contributors
305
306 Thanks to all of the contributors for this release!
307
308 - @cuviper
309 - @kornelski
310 - @jClaireCodesStuff
311 - @jwass
312 - @seanchen1991
313
314
315 # Release rayon 1.2.1 / rayon-core 1.6.1 (2019-11-20)
316
317 - Update crossbeam dependencies.
318 - Add top-level doc links for the iterator traits.
319 - Document that the iterator traits are not object safe.
320
321 ## Contributors
322
323 Thanks to all of the contributors for this release!
324
325 - @cuviper
326 - @dnaka91
327 - @matklad
328 - @nikomatsakis
329 - @Qqwy
330 - @vorner
331
332
333 # Release rayon 1.2.0 / rayon-core 1.6.0 (2019-08-30)
334
335 - The new `ParallelIterator::copied()` converts an iterator of references into
336 copied values, like `Iterator::copied()`.
337 - `ParallelExtend` is now implemented for the unit `()`.
338 - Internal updates were made to improve test determinism, reduce closure type
339 sizes, reduce task allocations, and update dependencies.
340 - The minimum supported `rustc` is now 1.28.
341
342 ## Contributors
343
344 Thanks to all of the contributors for this release!
345
346 - @Aaron1011
347 - @cuviper
348 - @ralfbiedert
349
350
351 # Release rayon 1.1.0 / rayon-core 1.5.0 (2019-06-12)
352
353 - FIFO spawns are now supported using the new `spawn_fifo()` and `scope_fifo()`
354 global functions, and their corresponding `ThreadPool` methods.
355 - Normally when tasks are queued on a thread, the most recent is processed
356 first (LIFO) while other threads will steal the oldest (FIFO). With FIFO
357 spawns, those tasks are processed locally in FIFO order too.
358 - Regular spawns and other tasks like `join` are not affected.
359 - The `breadth_first` configuration flag, which globally approximated this
360 effect, is now deprecated.
361 - For more design details, please see [RFC 1].
362 - `ThreadPoolBuilder` can now take a custom `spawn_handler` to control how
363 threads will be created in the pool.
364 - `ThreadPoolBuilder::build_scoped()` uses this to create a scoped thread
365 pool, where the threads are able to use non-static data.
366 - This may also be used to support threading in exotic environments, like
367 WebAssembly, which don't support the normal `std::thread`.
368 - `ParallelIterator` has 3 new methods: `find_map_any()`, `find_map_first()`,
369 and `find_map_last()`, like `Iterator::find_map()` with ordering constraints.
370 - The new `ParallelIterator::panic_fuse()` makes a parallel iterator halt as soon
371 as possible if any of its threads panic. Otherwise, the panic state is not
372 usually noticed until the iterator joins its parallel tasks back together.
373 - `IntoParallelIterator` is now implemented for integral `RangeInclusive`.
374 - Several internal `Folder`s now have optimized `consume_iter` implementations.
375 - `rayon_core::current_thread_index()` is now re-exported in `rayon`.
376 - The minimum `rustc` is now 1.26, following the update policy defined in [RFC 3].
377
378 ## Contributors
379
380 Thanks to all of the contributors for this release!
381
382 - @cuviper
383 - @didroe
384 - @GuillaumeGomez
385 - @huonw
386 - @janriemer
387 - @kornelski
388 - @nikomatsakis
389 - @seanchen1991
390 - @yegeun542
391
392 [RFC 1]: https://github.com/rayon-rs/rfcs/blob/main/accepted/rfc0001-scope-scheduling.md
393 [RFC 3]: https://github.com/rayon-rs/rfcs/blob/main/accepted/rfc0003-minimum-rustc.md
394
395
396 # Release rayon 1.0.3 (2018-11-02)
397
398 - `ParallelExtend` is now implemented for tuple pairs, enabling nested
399 `unzip()` and `partition_map()` operations. For instance, `(A, (B, C))`
400 items can be unzipped into `(Vec<A>, (Vec<B>, Vec<C>))`.
401 - `ParallelExtend<(A, B)>` works like `unzip()`.
402 - `ParallelExtend<Either<A, B>>` works like `partition_map()`.
403 - `ParallelIterator` now has a method `map_init()` which calls an `init`
404 function for a value to pair with items, like `map_with()` but dynamically
405 constructed. That value type has no constraints, not even `Send` or `Sync`.
406 - The new `for_each_init()` is a variant of this for simple iteration.
407 - The new `try_for_each_init()` is a variant for fallible iteration.
408
409 ## Contributors
410
411 Thanks to all of the contributors for this release!
412
413 - @cuviper
414 - @dan-zheng
415 - @dholbert
416 - @ignatenkobrain
417 - @mdonoughe
418
419
420 # Release rayon 1.0.2 / rayon-core 1.4.1 (2018-07-17)
421
422 - The `ParallelBridge` trait with method `par_bridge()` makes it possible to
423 use any `Send`able `Iterator` in parallel!
424 - This trait has been added to `rayon::prelude`.
425 - It automatically implements internal synchronization and queueing to
426 spread the `Item`s across the thread pool. Iteration order is not
427 preserved by this adaptor.
428 - "Native" Rayon iterators like `par_iter()` should still be preferred when
429 possible for better efficiency.
430 - `ParallelString` now has additional methods for parity with `std` string
431 iterators: `par_char_indices()`, `par_bytes()`, `par_encode_utf16()`,
432 `par_matches()`, and `par_match_indices()`.
433 - `ParallelIterator` now has fallible methods `try_fold()`, `try_reduce()`,
434 and `try_for_each`, plus `*_with()` variants of each, for automatically
435 short-circuiting iterators on `None` or `Err` values. These are inspired by
436 `Iterator::try_fold()` and `try_for_each()` that were stabilized in Rust 1.27.
437 - `Range<i128>` and `Range<u128>` are now supported with Rust 1.26 and later.
438 - Small improvements have been made to the documentation.
439 - `rayon-core` now only depends on `rand` for testing.
440 - Rayon tests now work on stable Rust.
441
442 ## Contributors
443
444 Thanks to all of the contributors for this release!
445
446 - @AndyGauge
447 - @cuviper
448 - @ignatenkobrain
449 - @LukasKalbertodt
450 - @MajorBreakfast
451 - @nikomatsakis
452 - @paulkernfeld
453 - @QuietMisdreavus
454
455
456 # Release rayon 1.0.1 (2018-03-16)
457
458 - Added more documentation for `rayon::iter::split()`.
459 - Corrected links and typos in documentation.
460
461 ## Contributors
462
463 Thanks to all of the contributors for this release!
464
465 - @cuviper
466 - @HadrienG2
467 - @matthiasbeyer
468 - @nikomatsakis
469
470
471 # Release rayon 1.0.0 / rayon-core 1.4.0 (2018-02-15)
472
473 - `ParallelIterator` added the `update` method which applies a function to
474 mutable references, inspired by `itertools`.
475 - `IndexedParallelIterator` added the `chunks` method which yields vectors of
476 consecutive items from the base iterator, inspired by `itertools`.
477 - `String` now implements `FromParallelIterator<Cow<str>>` and
478 `ParallelExtend<Cow<str>>`, inspired by `std`.
479 - `()` now implements `FromParallelIterator<()>`, inspired by `std`.
480 - The new `ThreadPoolBuilder` replaces and deprecates `Configuration`.
481 - Errors from initialization now have the concrete `ThreadPoolBuildError`
482 type, rather than `Box<Error>`, and this type implements `Send` and `Sync`.
483 - `ThreadPool::new` is deprecated in favor of `ThreadPoolBuilder::build`.
484 - `initialize` is deprecated in favor of `ThreadPoolBuilder::build_global`.
485 - Examples have been added to most of the parallel iterator methods.
486 - A lot of the documentation has been reorganized and extended.
487
488 ## Breaking changes
489
490 - Rayon now requires rustc 1.13 or greater.
491 - `IndexedParallelIterator::len` and `ParallelIterator::opt_len` now operate on
492 `&self` instead of `&mut self`.
493 - `IndexedParallelIterator::collect_into` is now `collect_into_vec`.
494 - `IndexedParallelIterator::unzip_into` is now `unzip_into_vecs`.
495 - Rayon no longer exports the deprecated `Configuration` and `initialize` from
496 rayon-core.
497
498 ## Contributors
499
500 Thanks to all of the contributors for this release!
501
502 - @Bilkow
503 - @cuviper
504 - @Enet4
505 - @ignatenkobrain
506 - @iwillspeak
507 - @jeehoonkang
508 - @jwass
509 - @Kerollmops
510 - @KodrAus
511 - @kornelski
512 - @MaloJaffre
513 - @nikomatsakis
514 - @obv-mikhail
515 - @oddg
516 - @phimuemue
517 - @stjepang
518 - @tmccombs
519 - bors[bot]
520
521
522 # Release rayon 0.9.0 / rayon-core 1.3.0 / rayon-futures 0.1.0 (2017-11-09)
523
524 - `Configuration` now has a `build` method.
525 - `ParallelIterator` added `flatten` and `intersperse`, both inspired by
526 itertools.
527 - `IndexedParallelIterator` added `interleave`, `interleave_shortest`, and
528 `zip_eq`, all inspired by itertools.
529 - The new functions `iter::empty` and `once` create parallel iterators of
530 exactly zero or one item, like their `std` counterparts.
531 - The new functions `iter::repeat` and `repeatn` create parallel iterators
532 repeating an item indefinitely or `n` times, respectively.
533 - The new function `join_context` works like `join`, with an added `FnContext`
534 parameter that indicates whether the job was stolen.
535 - `Either` (used by `ParallelIterator::partition_map`) is now re-exported from
536 the `either` crate, instead of defining our own type.
537 - `Either` also now implements `ParallelIterator`, `IndexedParallelIterator`,
538 and `ParallelExtend` when both of its `Left` and `Right` types do.
539 - All public types now implement `Debug`.
540 - Many of the parallel iterators now implement `Clone` where possible.
541 - Much of the documentation has been extended. (but still could use more help!)
542 - All rayon crates have improved metadata.
543 - Rayon was evaluated in the Libz Blitz, leading to many of these improvements.
544 - Rayon pull requests are now guarded by bors-ng.
545
546 ## Futures
547
548 The `spawn_future()` method has been refactored into its own `rayon-futures`
549 crate, now through a `ScopeFutureExt` trait for `ThreadPool` and `Scope`. The
550 supporting `rayon-core` APIs are still gated by `--cfg rayon_unstable`.
551
552 ## Breaking changes
553
554 - Two breaking changes have been made to `rayon-core`, but since they're fixing
555 soundness bugs, we are considering these _minor_ changes for semver.
556 - `Scope::spawn` now requires `Send` for the closure.
557 - `ThreadPool::install` now requires `Send` for the return value.
558 - The `iter::internal` module has been renamed to `iter::plumbing`, to hopefully
559 indicate that while these are low-level details, they're not really internal
560 or private to rayon. The contents of that module are needed for third-parties
561 to implement new parallel iterators, and we'll treat them with normal semver
562 stability guarantees.
563 - The function `rayon::iter::split` is no longer re-exported as `rayon::split`.
564
565 ## Contributors
566
567 Thanks to all of the contributors for this release!
568
569 - @AndyGauge
570 - @ChristopherDavenport
571 - @chrisvittal
572 - @cuviper
573 - @dns2utf8
574 - @dtolnay
575 - @frewsxcv
576 - @gsquire
577 - @Hittherhod
578 - @jdr023
579 - @laumann
580 - @leodasvacas
581 - @lvillani
582 - @MajorBreakfast
583 - @mamuleanu
584 - @marmistrz
585 - @mbrubeck
586 - @mgattozzi
587 - @nikomatsakis
588 - @smt923
589 - @stjepang
590 - @tmccombs
591 - @vishalsodani
592 - bors[bot]
593
594
595 # Release rayon 0.8.2 (2017-06-28)
596
597 - `ParallelSliceMut` now has six parallel sorting methods with the same
598 variations as the standard library.
599 - `par_sort`, `par_sort_by`, and `par_sort_by_key` perform stable sorts in
600 parallel, using the default order, a custom comparator, or a key extraction
601 function, respectively.
602 - `par_sort_unstable`, `par_sort_unstable_by`, and `par_sort_unstable_by_key`
603 perform unstable sorts with the same comparison options.
604 - Thanks to @stjepang!
605
606
607 # Release rayon 0.8.1 / rayon-core 1.2.0 (2017-06-14)
608
609 - The following core APIs are being stabilized:
610 - `rayon::spawn()` -- spawns a task into the Rayon thread pool; as it
611 is contained in the global scope (rather than a user-created
612 scope), the task cannot capture anything from the current stack
613 frame.
614 - `ThreadPool::join()`, `ThreadPool::spawn()`, `ThreadPool::scope()`
615 -- convenience APIs for launching new work within a thread pool.
616 - The various iterator adapters are now tagged with `#[must_use]`
617 - Parallel iterators now offer a `for_each_with` adapter, similar to
618 `map_with`.
619 - We are adopting a new approach to handling the remaining unstable
620 APIs (which primarily pertain to futures integration). As awlays,
621 unstable APIs are intended for experimentation, but do not come with
622 any promise of compatibility (in other words, we might change them
623 in arbitrary ways in any release). Previously, we designated such
624 APIs using a Cargo feature "unstable". Now, we are using a regular
625 `#[cfg]` flag. This means that to see the unstable APIs, you must do
626 `RUSTFLAGS='--cfg rayon_unstable' cargo build`. This is
627 intentionally inconvenient; in particular, if you are a library,
628 then your clients must also modify their environment, signaling
629 their agreement to instability.
630
631
632 # Release rayon 0.8.0 / rayon-core 1.1.0 (2017-06-13)
633
634 ## Rayon 0.8.0
635
636 - Added the `map_with` and `fold_with` combinators, which help for
637 passing along state (like channels) that cannot be shared between
638 threads but which can be cloned on each thread split.
639 - Added the `while_some` combinator, which helps for writing short-circuiting iterators.
640 - Added support for "short-circuiting" collection: e.g., collecting
641 from an iterator producing `Option<T>` or `Result<T, E>` into a
642 `Option<Collection<T>>` or `Result<Collection<T>, E>`.
643 - Support `FromParallelIterator` for `Cow`.
644 - Removed the deprecated weight APIs.
645 - Simplified the parallel iterator trait hierarchy by removing the
646 `BoundedParallelIterator` and `ExactParallelIterator` traits,
647 which were not serving much purpose.
648 - Improved documentation.
649 - Added some missing `Send` impls.
650 - Fixed some small bugs.
651
652 ## Rayon-core 1.1.0
653
654 - We now have more documentation.
655 - Renamed the (unstable) methods `spawn_async` and
656 `spawn_future_async` -- which spawn tasks that cannot hold
657 references -- to simply `spawn` and `spawn_future`, respectively.
658 - We are now using the coco library for our deque.
659 - Individual thread pools can now be configured in "breadth-first"
660 mode, which causes them to execute spawned tasks in the reverse
661 order that they used to. In some specific scenarios, this can be a
662 win (though it is not generally the right choice).
663 - Added top-level functions:
664 - `current_thread_index`, for querying the index of the current worker thread within
665 its thread pool (previously available as `thread_pool.current_thread_index()`);
666 - `current_thread_has_pending_tasks`, for querying whether the
667 current worker that has an empty task deque or not. This can be
668 useful when deciding whether to spawn a task.
669 - The environment variables for controlling Rayon are now
670 `RAYON_NUM_THREADS` and `RAYON_LOG`. The older variables (e.g.,
671 `RAYON_RS_NUM_CPUS` are still supported but deprecated).
672
673 ## Rayon-demo
674
675 - Added a new game-of-life benchmark.
676
677 ## Contributors
678
679 Thanks to the following contributors:
680
681 - @ChristopherDavenport
682 - @SuperFluffy
683 - @antoinewdg
684 - @crazymykl
685 - @cuviper
686 - @glandium
687 - @julian-seward1
688 - @leodasvacas
689 - @leshow
690 - @lilianmoraru
691 - @mschmo
692 - @nikomatsakis
693 - @stjepang
694
695
696 # Release rayon 0.7.1 / rayon-core 1.0.2 (2017-05-30)
697
698 This release is a targeted performance fix for #343, an issue where
699 rayon threads could sometimes enter into a spin loop where they would
700 be unable to make progress until they are pre-empted.
701
702
703 # Release rayon 0.7 / rayon-core 1.0 (2017-04-06)
704
705 This release marks the first step towards Rayon 1.0. **For best
706 performance, it is important that all Rayon users update to at least
707 Rayon 0.7.** This is because, as of Rayon 0.7, we have taken steps to
708 ensure that, no matter how many versions of rayon are actively in use,
709 there will only be a single global scheduler. This is achieved via the
710 `rayon-core` crate, which is being released at version 1.0, and which
711 encapsulates the core schedule APIs like `join()`. (Note: the
712 `rayon-core` crate is, to some degree, an implementation detail, and
713 not intended to be imported directly; it's entire API surface is
714 mirrored through the rayon crate.)
715
716 We have also done a lot of work reorganizing the API for Rayon 0.7 in
717 preparation for 1.0. The names of iterator types have been changed and
718 reorganized (but few users are expected to be naming those types
719 explicitly anyhow). In addition, a number of parallel iterator methods
720 have been adjusted to match those in the standard iterator traits more
721 closely. See the "Breaking Changes" section below for
722 details.
723
724 Finally, Rayon 0.7 includes a number of new features and new parallel
725 iterator methods. **As of this release, Rayon's parallel iterators
726 have officially reached parity with sequential iterators** -- that is,
727 every sequential iterator method that makes any sense in parallel is
728 supported in some capacity.
729
730 ### New features and methods
731
732 - The internal `Producer` trait now features `fold_with`, which enables
733 better performance for some parallel iterators.
734 - Strings now support `par_split()` and `par_split_whitespace()`.
735 - The `Configuration` API is expanded and simplified:
736 - `num_threads(0)` no longer triggers an error
737 - you can now supply a closure to name the Rayon threads that get created
738 by using `Configuration::thread_name`.
739 - you can now inject code when Rayon threads start up and finish
740 - you can now set a custom panic handler to handle panics in various odd situations
741 - Threadpools are now able to more gracefully put threads to sleep when not needed.
742 - Parallel iterators now support `find_first()`, `find_last()`, `position_first()`,
743 and `position_last()`.
744 - Parallel iterators now support `rev()`, which primarily affects subsequent calls
745 to `enumerate()`.
746 - The `scope()` API is now considered stable (and part of `rayon-core`).
747 - There is now a useful `rayon::split` function for creating custom
748 Rayon parallel iterators.
749 - Parallel iterators now allow you to customize the min/max number of
750 items to be processed in a given thread. This mechanism replaces the
751 older `weight` mechanism, which is deprecated.
752 - `sum()` and friends now use the standard `Sum` traits
753
754 ### Breaking changes
755
756 In the move towards 1.0, there have been a number of minor breaking changes:
757
758 - Configuration setters like `Configuration::set_num_threads()` lost the `set_` prefix,
759 and hence become something like `Configuration::num_threads()`.
760 - `Configuration` getters are removed
761 - Iterator types have been shuffled around and exposed more consistently:
762 - combinator types live in `rayon::iter`, e.g. `rayon::iter::Filter`
763 - iterators over various types live in a module named after their type,
764 e.g. `rayon::slice::Windows`
765 - When doing a `sum()` or `product()`, type annotations are needed for the result
766 since it is now possible to have the resulting sum be of a type other than the value
767 you are iterating over (this mirrors sequential iterators).
768
769 ### Experimental features
770
771 Experimental features require the use of the `unstable` feature. Their
772 APIs may change or disappear entirely in future releases (even minor
773 releases) and hence they should be avoided for production code.
774
775 - We now have (unstable) support for futures integration. You can use
776 `Scope::spawn_future` or `rayon::spawn_future_async()`.
777 - There is now a `rayon::spawn_async()` function for using the Rayon
778 thread pool to run tasks that do not have references to the stack.
779
780 ### Contributors
781
782 Thanks to the following people for their contributions to this release:
783
784 - @Aaronepower
785 - @ChristopherDavenport
786 - @bluss
787 - @cuviper
788 - @froydnj
789 - @gaurikholkar
790 - @hniksic
791 - @leodasvacas
792 - @leshow
793 - @martinhath
794 - @mbrubeck
795 - @nikomatsakis
796 - @pegomes
797 - @schuster
798 - @torkleyy
799
800
801 # Release 0.6 (2016-12-21)
802
803 This release includes a lot of progress towards the goal of parity
804 with the sequential iterator API, though there are still a few methods
805 that are not yet complete. If you'd like to help with that effort,
806 [check out the milestone](https://github.com/rayon-rs/rayon/issues?q=is%3Aopen+is%3Aissue+milestone%3A%22Parity+with+the+%60Iterator%60+trait%22)
807 to see the remaining issues.
808
809 **Announcement:** @cuviper has been added as a collaborator to the
810 Rayon repository for all of his outstanding work on Rayon, which
811 includes both internal refactoring and helping to shape the public
812 API. Thanks @cuviper! Keep it up.
813
814 - We now support `collect()` and not just `collect_with()`.
815 You can use `collect()` to build a number of collections,
816 including vectors, maps, and sets. Moreover, when building a vector
817 with `collect()`, you are no longer limited to exact parallel iterators.
818 Thanks @nikomatsakis, @cuviper!
819 - We now support `skip()` and `take()` on parallel iterators.
820 Thanks @martinhath!
821 - **Breaking change:** We now match the sequential APIs for `min()` and `max()`.
822 We also support `min_by_key()` and `max_by_key()`. Thanks @tapeinosyne!
823 - **Breaking change:** The `mul()` method is now renamed to `product()`,
824 to match sequential iterators. Thanks @jonathandturner!
825 - We now support parallel iterator over ranges on `u64` values. Thanks @cuviper!
826 - We now offer a `par_chars()` method on strings for iterating over characters
827 in parallel. Thanks @cuviper!
828 - We now have new demos: a traveling salesman problem solver as well as matrix
829 multiplication. Thanks @nikomatsakis, @edre!
830 - We are now documenting our minimum rustc requirement (currently
831 v1.12.0). We will attempt to maintain compatibility with rustc
832 stable v1.12.0 as long as it remains convenient, but if new features
833 are stabilized or added that would be helpful to Rayon, or there are
834 bug fixes that we need, we will bump to the most recent rustc. Thanks @cuviper!
835 - The `reduce()` functionality now has better inlining.
836 Thanks @bluss!
837 - The `join()` function now has some documentation. Thanks @gsquire!
838 - The project source has now been fully run through rustfmt.
839 Thanks @ChristopherDavenport!
840 - Exposed helper methods for accessing the current thread index.
841 Thanks @bholley!
842
843
844 # Release 0.5 (2016-11-04)
845
846 - **Breaking change:** The `reduce` method has been vastly
847 simplified, and `reduce_with_identity` has been deprecated.
848 - **Breaking change:** The `fold` method has been changed. It used to
849 always reduce the values, but now instead it is a combinator that
850 returns a parallel iterator which can itself be reduced. See the
851 docs for more information.
852 - The following parallel iterator combinators are now available (thanks @cuviper!):
853 - `find_any()`: similar to `find` on a sequential iterator,
854 but doesn't necessarily return the *first* matching item
855 - `position_any()`: similar to `position` on a sequential iterator,
856 but doesn't necessarily return the index of *first* matching item
857 - `any()`, `all()`: just like their sequential counterparts
858 - The `count()` combinator is now available for parallel iterators.
859 - We now build with older versions of rustc again (thanks @durango!),
860 as we removed a stray semicolon from `thread_local!`.
861 - Various improvements to the (unstable) `scope()` API implementation.
862
863
864 # Release 0.4.3 (2016-10-25)
865
866 - Parallel iterators now offer an adaptive weight scheme,
867 which means that explicit weights should no longer
868 be necessary in most cases! Thanks @cuviper!
869 - We are considering removing weights or changing the weight mechanism
870 before 1.0. Examples of scenarios where you still need weights even
871 with this adaptive mechanism would be great. Join the discussion
872 at <https://github.com/rayon-rs/rayon/issues/111>.
873 - New (unstable) scoped threads API, see `rayon::scope` for details.
874 - You will need to supply the [cargo feature] `unstable`.
875 - The various demos and benchmarks have been consolidated into one
876 program, `rayon-demo`.
877 - Optimizations in Rayon's inner workings. Thanks @emilio!
878 - Update `num_cpus` to 1.0. Thanks @jamwt!
879 - Various internal cleanup in the implementation and typo fixes.
880 Thanks @cuviper, @Eh2406, and @spacejam!
881
882 [cargo feature]: https://doc.rust-lang.org/cargo/reference/features.html#the-features-section
883
884
885 # Release 0.4.2 (2016-09-15)
886
887 - Updated crates.io metadata.
888
889
890 # Release 0.4.1 (2016-09-14)
891
892 - New `chain` combinator for parallel iterators.
893 - `Option`, `Result`, as well as many more collection types now have
894 parallel iterators.
895 - New mergesort demo.
896 - Misc fixes.
897
898 Thanks to @cuviper, @edre, @jdanford, @frewsxcv for their contributions!
899
900
901 # Release 0.4 (2016-05-16)
902
903 - Make use of latest versions of catch-panic and various fixes to panic propagation.
904 - Add new prime sieve demo.
905 - Add `cloned()` and `inspect()` combinators.
906 - Misc fixes for Rust RFC 1214.
907
908 Thanks to @areilb1, @Amanieu, @SharplEr, and @cuviper for their contributions!
909
910
911 # Release 0.3 (2016-02-23)
912
913 - Expanded `par_iter` APIs now available:
914 - `into_par_iter` is now supported on vectors (taking ownership of the elements)
915 - Panic handling is much improved:
916 - if you use the Nightly feature, experimental panic recovery is available
917 - otherwise, panics propagate out and poision the workpool
918 - New `Configuration` object to control number of threads and other details
919 - New demos and benchmarks
920 - try `cargo run --release -- visualize` in `demo/nbody` :)
921 - Note: a nightly compiler is required for this demo due to the
922 use of the `+=` syntax
923
924 Thanks to @bjz, @cuviper, @Amanieu, and @willi-kappler for their contributions!
925
926
927 # Release 0.2 and earlier
928
929 No release notes were being kept at this time.