1 unstable release

0.1.0 Apr 8, 2022

#823 in Concurrency

Download history 3181/week @ 2024-07-30 1858/week @ 2024-08-06 1606/week @ 2024-08-13 1495/week @ 2024-08-20 1422/week @ 2024-08-27 1532/week @ 2024-09-03 1535/week @ 2024-09-10 1510/week @ 2024-09-17 1730/week @ 2024-09-24 1484/week @ 2024-10-01 1781/week @ 2024-10-08 1438/week @ 2024-10-15 1426/week @ 2024-10-22 2500/week @ 2024-10-29 2161/week @ 2024-11-05 2020/week @ 2024-11-12

8,401 downloads per month

MIT license

7KB
128 lines

The spliter crate provides a simpler way to implement Rayon's ParallelIterator trait than Rayon's plumbing module.

Implement the Spliterator trait to teach your Iterator how to split itself in half, and spliter will wrap it into a ParallelIterator for you. Just call par_split().

This crate differs from Rayon's default behavior by continuing to split even after it starts consuming items. This makes it ideal for tasks like graph or tree search where the dataset can grow during iteration. See this post for the story behind its development.

Dependencies

~1.5MB
~25K SLoC