spliter 0.1.0

A simple way to implement Rayon's ParallelIterator
Documentation
  • Coverage
  • 60%
    6 out of 10 items documented0 out of 5 items with examples
  • Size
  • Source code size: 20.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 23s Average build duration of successful builds.
  • all releases: 23s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tavianator/spliter
    19 4 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tavianator

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.