takeaway 0.0.1

An efficient work-stealing task queue with prioritization and batching.
Documentation

takeaway: High-performance task queues

takeaway is a Rust library providing a high-performance, work-stealing task queue data structure. It is perfect for task architectures where:

  • There may be thousands of tasks ready to run at any time.
  • Tasks are small, synchronous, and CPU-bound.
  • It is important to execute higher-priority tasks first.
  • All available CPUs should be used to maximum capacity.
  • (Optional) Tasks can be executed more efficiently in batches.

takeaway was developed for krabby, an experimental Rust compiler, due to the limitations of crossbeam-deque (in particular, its overhead and the lack of task prioritization functionality). It is offered as a separate crate in the hope that others may find it useful for parallelized CPU-intensive applications.

License

Copyright (C) 2025 arya dradjica uhe8ob7m71igsl1d@bal-e.org

takeaway is available under the MIT or Apache-2.0 licenses, at your option. Their terms are available in LICENSES/MIT.txt and LICENSES/Apache-2.0.txt respectively.