#thread-pool #thread #pool #worker-thread #tree-structure #tree #parallelism

thread-tree

A 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

5 releases

0.3.3 Nov 14, 2021
0.3.2 Jan 2, 2021
0.3.1 Jan 1, 2021
0.3.0 Dec 26, 2020
0.2.0 Dec 20, 2020

#799 in Concurrency

Download history 3082/week @ 2024-03-14 6434/week @ 2024-03-21 6672/week @ 2024-03-28 4730/week @ 2024-04-04 9330/week @ 2024-04-11 12535/week @ 2024-04-18 16717/week @ 2024-04-25 12523/week @ 2024-05-02 12517/week @ 2024-05-09 11776/week @ 2024-05-16 11238/week @ 2024-05-23 15635/week @ 2024-05-30 22107/week @ 2024-06-06 12822/week @ 2024-06-13 13976/week @ 2024-06-20 15541/week @ 2024-06-27

68,070 downloads per month
Used in 35 crates (via matrixmultiply)

MIT/Apache

24KB
415 lines

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.


lib.rs:

A hierarchical thread pool used for splitting work in a branching fashion.

This thread pool 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

Dependencies

~350KB