Skip to content

Commit

Permalink
Use one thread for igzip_threaded as that is more efficient than mult…
Browse files Browse the repository at this point in the history
…iple
  • Loading branch information
rhpvorderman committed Jan 12, 2024
1 parent a120586 commit afaf77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xopen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ def _open_gz( # noqa: C901
mode,
compresslevel,
**text_mode_kwargs,
threads=threads or max(_available_cpu_count(), 4),
threads=1,
)
except ValueError: # Wrong compression level
pass
Expand Down

0 comments on commit afaf77f

Please sign in to comment.