affinitypool 0.1.1

A Rust library for running blocking jobs on a dedicated thread pool with CPU core affinity
Documentation

affinitypool

A threadpool for running blocking jobs on a dedicated thread pool. Blocking tasks can be sent asynchronously to the pool, where the task will be queued until a worker thread is free to process the task. Tasks are processed in a FIFO order.

For optimised workloads, the affinity of each thread can be specified, ensuring that each thread can request to be pinned to a certain thread, allowing for more parallelism, and better performance guarantees for blocking workloads.