1 unstable release

0.1.0 Apr 8, 2022

#826 in Concurrency

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