Cargo Features

[dependencies]
fast-able = { version = "1.13.5", default-features = false, features = ["async", "std_lock", "reentrant_lock", "deal_physical_cpu", "thread_dispatch"] }
default = std_lock

The std_lock feature is set by default whenever fast-able is added without default-features = false somewhere in the dependency tree.

async

Enables async of flume ^0.10

std_lock default
reentrant_lock
deal_physical_cpu

判断CPU是否有开启超线程技术, 如果有则隔一个cpu绑定一个核心

Affects pool::get_core_skip

thread_dispatch

线程调度功能; 开启则有功能: 如果当前任务堆积小于5个, 则使用当前线程; 否则就去找最少任务数的线程