https://github.com/bluss/thread-tree
A tree-shaped thread pool used for spawning stack-bound scoped jobs with no work stealing. Derived from a little bit of rayon-core code + new thread pool on top.
https://github.com/bluss/thread-tree
rust rust-lang rust-sci thread-pool
Last synced: 10 months ago
JSON representation
A tree-shaped thread pool used for spawning stack-bound scoped jobs with no work stealing. Derived from a little bit of rayon-core code + new thread pool on top.
- Host: GitHub
- URL: https://github.com/bluss/thread-tree
- Owner: bluss
- License: apache-2.0
- Created: 2018-12-11T21:07:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-14T20:17:49.000Z (about 4 years ago)
- Last Synced: 2025-04-09T10:06:01.674Z (10 months ago)
- Topics: rust, rust-lang, rust-sci, thread-pool
- Language: Rust
- Homepage: https://docs.rs/thread-tree
- Size: 53.7 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
## Thread tree
A tree-structured thread pool. See [API documentation](https://docs.rs/thread-tree) 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.