From 13a5f952f655520091ff8a230f6543982ca5d9da Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 15 Mar 2020 18:04:39 +0100 Subject: [PATCH] Change the channel buffer to be twice the number of cpus --- Cargo.toml | 2 +- src/io.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9d06932..b19f869 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bdflib" -version = "0.4.3" +version = "0.4.4" authors = ["trivernis "] edition = "2018" license-file = "LICENSE" diff --git a/src/io.rs b/src/io.rs index fadd855..7a985a4 100644 --- a/src/io.rs +++ b/src/io.rs @@ -233,7 +233,7 @@ impl BDFReader { lookup_table: None, reader: BufReader::new(inner), compressed: false, - thread_manager: ThreadManager::new(num_cpus::get()), + thread_manager: ThreadManager::new(num_cpus::get() * 2), } }