From 1482efdc0be639ad90f5d37f01fc43bf64e66b45 Mon Sep 17 00:00:00 2001 From: cihga39871 Date: Sat, 4 Mar 2023 16:42:00 -0400 Subject: [PATCH] update threads --- CHANGELOG.md | 3 ++- src/Trimmer/wrapper.jl | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4985ae3..6142069 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## v3.2.2 -- Optimize: speed up drastically. +- Optimize: speed up for threads <= 2. +- Fix: `atria test` should not depend on source files. ## v3.2.1 diff --git a/src/Trimmer/wrapper.jl b/src/Trimmer/wrapper.jl index fb2edaa..62ee9c8 100644 --- a/src/Trimmer/wrapper.jl +++ b/src/Trimmer/wrapper.jl @@ -578,11 +578,11 @@ function julia_wrapper_atria(ARGS::Vector{String}; exit_after_help = true) end if outcompress == "GZIP" - io1out = open(`pigz -p$nthread -c`, open(outfile1, "w"), write=true, read=false) - io2out = open(`pigz -p$nthread -c`, open(outfile2, "w"), write=true, read=false) + io1out = open(`pigz -p$halfthread -c`, open(outfile1, "w"), write=true, read=false) + io2out = open(`pigz -p$halfthread -c`, open(outfile2, "w"), write=true, read=false) elseif outcompress == "BZIP2" - io1out = open(`pbzip2 -p$nthread -c`, open(outfile1, "w"), write=true, read=false) - io2out = open(`pbzip2 -p$nthread -c`, open(outfile2, "w"), write=true, read=false) + io1out = open(`pbzip2 -p$halfthread -c`, open(outfile1, "w"), write=true, read=false) + io2out = open(`pbzip2 -p$halfthread -c`, open(outfile2, "w"), write=true, read=false) else io1out = open(outfile1, "w") io2out = open(outfile2, "w")