Skip to content

Commit

Permalink
make formatter happier
Browse files Browse the repository at this point in the history
  • Loading branch information
Bathtor committed Apr 5, 2021
1 parent 124a56a commit 5f516a0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions executors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//! - Provides a wrapper implementation around the [threadpool](https://crates.io/crates/threadpool) crate.
//! - See [threadpool_executor](threadpool_executor).
//! - `cb-channel-exec` (default)
//! - Provides a thread pool executor with a single global queue.
//! - Provides a thread pool executor with a single global queue.
//! - See [crossbeam_channel_pool](crossbeam_channel_pool).
//! - `workstealing-exec` (default)
//! - Provides a thread pool executor with thread-local queues in addition to a global injector queue.
Expand All @@ -35,7 +35,7 @@
//! - This feature flag determines the fairness mechanism between local and global queues in the [crossbeam_workstealing_pool](crossbeam_workstealing_pool).
//! - If the flag is enabled the fairness is time-based. The global queue will be checked every 100ms.
//! - If the flags is absent the fairness is count-based. The global queue will be checked every 100 local jobs.
//! - Which one you should pick depends on your application.
//! - Which one you should pick depends on your application.
//! - Time-based fairness is a compromise between latency of externally scheduled jobs and overall throughput.
//! - Count-based is going to depend heavily on how long your jobs typically are, but counting is cheaper than checking time, so it can lead to higher throughput.
//! - `ws-no-park`
Expand All @@ -58,7 +58,6 @@
//! - Not all executors produce all metrics.
//! - **WARNING**: Collecting these metrics typically has a serious performance impact. You should only consider using this in production if your jobs are fairly large anyway (say in the millisecond range).

#[macro_use]
extern crate log;

Expand Down

0 comments on commit 5f516a0

Please sign in to comment.