Skip to content

Commit

Permalink
perf: Increase default async thread count for low core count systems (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion authored Nov 17, 2024
1 parent 245d549 commit 2a0d79b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-io/src/pl_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl RuntimeManager {
fn new() -> Self {
let n_threads = std::env::var("POLARS_ASYNC_THREAD_COUNT")
.map(|x| x.parse::<usize>().expect("integer"))
.unwrap_or((POOL.current_num_threads() / 4).clamp(1, 4));
.unwrap_or(POOL.current_num_threads().clamp(1, 4));

if polars_core::config::verbose() {
eprintln!("Async thread count: {}", n_threads);
Expand Down

0 comments on commit 2a0d79b

Please sign in to comment.