feat(runtime): cap tokio worker threads at 16 and scale blocking threads (#6261)

This prevents the runtime from spawning an excessive number of threads on
high-end CPUs, reducing memory footprint and context switching.
Introduces a dynamic cap for worker threads (max 16) and scales
blocking threads proportionally. Includes thread naming for diagnostics.
This commit is contained in:
Tunglies
2026-04-15 08:38:19 +00:00
committed by GitHub
parent 2e505f26ae
commit 30ed2ac829
2 changed files with 23 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ mod feat;
mod module;
mod process;
pub mod utils;
use crate::constants::files;
use crate::{
core::handle,