Cargo Features
[dependencies]
fast-able = { version = "1.18.6", default-features = false, features = ["async", "std_lock", "reentrant_lock", "deal_physical_cpu", "thread_dispatch", "crossbeam_channel", "thread_task_bounded"] }
- default = crossbeam_channel, std_lock
-
These default features are set whenever
fast-able
is added without
somewhere in the dependency tree.default-features = false - async
- std_lock default
- reentrant_lock
- deal_physical_cpu
-
判断CPU是否有开启超线程技术, 如果有则隔一个cpu绑定一个核心
Affects
utils::get_core_skip
… - thread_dispatch
-
线程调度功能; 开启则有功能: 如果当前任务堆积小于5个, 则使用当前线程; 否则就去找最少任务数的线程
- crossbeam_channel default
-
使用 crossbeam channel 替代 std channel
Affects
channel_types::unbounded
… - thread_task_bounded
-
有界channel 线程池