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

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

#703 in Concurrency

Download history 7075/week @ 2024-11-15 8834/week @ 2024-11-22 12468/week @ 2024-11-29 12059/week @ 2024-12-06 11290/week @ 2024-12-13 9758/week @ 2024-12-20 5848/week @ 2024-12-27 11268/week @ 2025-01-03 34440/week @ 2025-01-10 9116/week @ 2025-01-17 12650/week @ 2025-01-24 10689/week @ 2025-01-31 13031/week @ 2025-02-07 12334/week @ 2025-02-14 16098/week @ 2025-02-21 15546/week @ 2025-02-28

59,430 downloads per month
Used in 61 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