blocking: opt-out CPUs auto-detection in debug mode (#807)
This tweaks the tokio runtime checker (only used in debug mode) in order to use a single thread. Performing the CPUs auto-detection step on each check adds significant syscall-tracing noise and runtime latency. This completely skips it.
This commit is contained in:
@@ -68,6 +68,7 @@ fn enter() {
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
tokio::runtime::Builder::new()
|
||||
.core_threads(1)
|
||||
.build()
|
||||
.expect("build shell runtime")
|
||||
.enter(|| {});
|
||||
|
||||
Reference in New Issue
Block a user