fast_pool-0.1.2 has been yanked.
fast_pool
a fast async pool based on channel
- support
get(),get_timeout(),state()methods - support atomic max_open(Resize freely)
- based on crossbeam channel(crossfire)
way fast_pool?
- fast get() method performance
//windows:
//---- bench_pool stdout ----
//use Time: 4.0313ms ,each:40 ns/op
//use QPS: 24749412 QPS/s
//macos:
//---- bench_pool stdout ----
// use Time: 6.373708ms ,each:63 ns/op
// use QPS: 15683710 QPS/s
how to use this?
- add toml
="0.1"
= "0.1"
= { = "1", = ["time","rt-multi-thread","macros"]}
- impl trait
use ;
use Duration;
use async_trait;
use ;
async