thread-tree

Crates.iothread-tree
lib.rsthread-tree
version0.3.3
sourcesrc
created_at2020-12-20 17:03:13.469077
updated_at2021-11-14 20:17:34.84026
descriptionA tree-structured thread pool for splitting jobs hierarchically on worker threads. The tree structure means that there is no contention between workers when delivering jobs.
homepage
repositoryhttps://github.com/bluss/thread-tree
max_upload_size
id324942
size36,200
Jim Turner (jturner314)

documentation

https://docs.rs/thread-tree

README

Thread tree

A tree-structured thread pool. See API documentation for more information.

Stack jobs and job execution based on rayon-core by Niko Matsakis and Josh Stone.

Experimental simple thread pool used for spawning stack-bound scoped jobs with no work stealing.

This is good for:

  • You want to split work recursively in jobs that use approximately the same time.
  • You want thread pool overhead to be low

This is not good for:

  • You need work stealing

  • When you have jobs of uneven size

Wild ideas and notes

Possibly allow reserving a subbranch of the tree.

Commit count: 39

cargo fmt