# klauspost/pgzip

Go parallel gzip (de)compression

Repository: https://github.com/klauspost/pgzip
Canonical: https://ross.abutalabs.com/products/pgzip
Language: Go
License: MIT
License Family: permissive
Last push: 2026-07-22T16:17:26+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 8, longevity 100
- inputs: {"age_days": 4339, "days_push": 42, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1205, forks 88 (observed 2026-08-28T04:03:59.217835+00:00)

## What it is
A Go library providing parallel gzip compression and decompression as a drop-in replacement for the standard compress/gzip package. It splits data into blocks compressed concurrently and reads ahead during decompression, producing fully standard gzip files.

## Use cases
- compress large files faster with multiple CPU cores
- speed up gzip decompression of big data streams
- replace compress/gzip in Go code without changing output format
- parallelize gzip compression in data pipelines
- reduce blocking when reading gzip streams

## When to choose
- you are compressing or decompressing large amounts of data (over 1MB at a time) in Go
- you need standard gzip-compatible output with parallel speedups
- you want a drop-in replacement for compress/gzip

## When to avoid
- you are compressing small payloads under 1MB where parallelism adds overhead
- you need seeking within compressed files (consider bgzf)
- you need maximum single-threaded compression ratios (consider klauspost/compress)

## Facets
- artifact type: library
- maturity: stable
- function: compression
- domain: developer-tools, files, performance
- platform: go, cross-platform
- tags: gzip, parallel-compression, drop-in-replacement

## Member repositories
- klauspost/pgzip (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.217835+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:19:35.824687+00:00, confidence not recorded.
  - readme: https://github.com/klauspost/pgzip (fetched 2026-08-28T04:03:59.217835+00:00, sha 9a0c6fb28902)
- Data as of 2026-08-30T08:39:29.467469+00:00.
