mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-19 02:12:10 +08:00
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:
@@ -10,6 +10,7 @@ mod feat;
|
||||
mod module;
|
||||
mod process;
|
||||
pub mod utils;
|
||||
|
||||
use crate::constants::files;
|
||||
use crate::{
|
||||
core::handle,
|
||||
|
||||
Reference in New Issue
Block a user