Change the channel buffer to be twice the number of cpus

master
trivernis 5 years ago
parent 16cc793f92
commit 13a5f952f6

@ -1,6 +1,6 @@
[package] [package]
name = "bdflib" name = "bdflib"
version = "0.4.3" version = "0.4.4"
authors = ["trivernis <trivernis@gmail.com>"] authors = ["trivernis <trivernis@gmail.com>"]
edition = "2018" edition = "2018"
license-file = "LICENSE" license-file = "LICENSE"

@ -233,7 +233,7 @@ impl BDFReader {
lookup_table: None, lookup_table: None,
reader: BufReader::new(inner), reader: BufReader::new(inner),
compressed: false, compressed: false,
thread_manager: ThreadManager::new(num_cpus::get()), thread_manager: ThreadManager::new(num_cpus::get() * 2),
} }
} }

Loading…
Cancel
Save