Skip to content

Commit 86338b2

Browse files
author
Rickard Lundin
committed
removed rayon global init
1 parent bc6136f commit 86338b2

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

src/chunked/residual_slicer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use std::io::{BufReader, Read};
3434

3535
use super::{ChunkAndResidue, Converter, FnFindLastLineBreak, IterRevolver, Slicer, Stats};
3636

37-
pub(crate) const SLICER_IN_CHUNK_SIZE: usize = 1024 * 2024;
37+
pub(crate) const SLICER_IN_CHUNK_SIZE: usize = 1024 * 1024;
3838
pub(crate) const SLICER_MAX_RESIDUE_SIZE: usize = SLICER_IN_CHUNK_SIZE;
3939

4040
pub(crate) const IN_MAX_CHUNKS: usize = 2;

src/cli.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,6 @@ impl Cli {
236236
pub fn run(&self) -> Result<()> {
237237
let n_threads: usize = get_available_threads(self.n_threads);
238238

239-
#[cfg(feature = "rayon")]
240-
{
241-
if n_threads > 1 {
242-
rayon::ThreadPoolBuilder::new()
243-
.num_threads(n_threads)
244-
.build_global()
245-
.expect("Could not create Rayon thread pool!");
246-
#[cfg(debug_assertions)]
247-
debug!("Rayon parallelism enabled!");
248-
};
249-
}
250-
251239
match &self.command {
252240
Commands::Convert {
253241
in_file,

0 commit comments

Comments
 (0)