diff --git a/src/command.rs b/src/command.rs index ec73adf96b..bb36296801 100644 --- a/src/command.rs +++ b/src/command.rs @@ -107,7 +107,6 @@ pub(crate) fn parse_commandline_args( let log_level: Option = call.get_flag_expr("log-level"); let log_target: Option = call.get_flag_expr("log-target"); let execute: Option = call.get_flag_expr("execute"); - let threads: Option = call.get_flag(engine_state, &mut stack, "threads")?; let table_mode: Option = call.get_flag(engine_state, &mut stack, "table-mode")?; @@ -181,7 +180,6 @@ pub(crate) fn parse_commandline_args( log_level, log_target, execute, - threads, table_mode, }); } @@ -213,7 +211,6 @@ pub(crate) struct NushellCliArgs { pub(crate) log_level: Option>, pub(crate) log_target: Option>, pub(crate) execute: Option>, - pub(crate) threads: Option, pub(crate) table_mode: Option, } diff --git a/src/main.rs b/src/main.rs index 0e9a7021c2..240fdcca7e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -136,24 +136,6 @@ fn main() -> Result<()> { use_color, ); - start_time = std::time::Instant::now(); - if let Some(t) = parsed_nu_cli_args.threads.clone() { - // 0 means to let rayon decide how many threads to use - let threads = t.as_i64().unwrap_or(0); - rayon::ThreadPoolBuilder::new() - .num_threads(threads as usize) - .build_global() - .expect("error setting number of threads"); - } - perf( - "set rayon threads", - start_time, - file!(), - line!(), - column!(), - use_color, - ); - start_time = std::time::Instant::now(); if let Some(testbin) = &parsed_nu_cli_args.testbin { // Call out to the correct testbin