Debian Codegraph @

debian/missing-sources/rayon/RELEASES.md

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