Skip to content

Commit

Permalink
update threads
Browse files Browse the repository at this point in the history
  • Loading branch information
cihga39871 committed Mar 4, 2023
1 parent bca33e7 commit 1482efd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions src/Trimmer/wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1482efd

Please # to comment.