Skip to content

Add pigz and worker pool - #17

Merged
Ulthran merged 22 commits into
mainfrom
parallelize
Oct 22, 2025
Merged

Add pigz and worker pool#17
Ulthran merged 22 commits into
mainfrom
parallelize

Conversation

@Ulthran

@Ulthran Ulthran commented Oct 20, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings October 20, 2025 21:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for pigz (parallel gzip) compression and introduces thread pool configuration. The changes allow the application to leverage pigz for faster compression/decompression when available, falling back to standard gzip otherwise. Additionally, thread count handling is improved by setting a default value of 1 when not specified.

Key Changes:

  • Added pigz support with environment-based compression level configuration
  • Introduced default thread count initialization
  • Refactored gzip file handling into a dedicated method

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/heyfastqlib/command.py Added default thread count initialization and removed pragma no cover comments
src/heyfastqlib/argparse_types.py Implemented pigz support with fallback to gzip, refactored file opening logic, and fixed self.mode reference

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/heyfastqlib/argparse_types.py Outdated
Comment thread src/heyfastqlib/argparse_types.py Outdated
Comment thread src/heyfastqlib/argparse_types.py
@Ulthran
Ulthran merged commit d9c9c9c into main Oct 22, 2025
4 checks passed
@Ulthran
Ulthran deleted the parallelize branch October 22, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants