Menu

Containerd 2.4's switch to klauspost's gzip decoder speeds up real image layers by 18%
πŸ“°

Containerd 2.4's switch to klauspost's gzip decoder speeds up real image layers by 18%

DEV Community: dockerΒ·Alex GeorgievΒ·9 days ago
#BD1qnaO8
#devtodocker#devto#dev#klauspost#gzip
Reading 0:00
15s threshold

Containerd 2.4.0 shipped a one-line-sounding change: layer decompression now uses klauspost/compress/gzip instead of the standard library's compress/gzip . The pull request claimed 1.4 to 1.5 times faster decompression, measured on a 3.4GiB CUDA image and a 7GiB PyTorch image, on arm64. I run neither of those images, and my container host is an Intel Xeon, not an Apple Silicon or Graviton box, so I wanted to know what this actually buys an ordinary python:3.12 pull on ordinary x86_64 hardware.

It buys about 18%, not 40-50%. The allocation story, on the other hand, held up completely.

What actually changed

The change is PR #13560 against containerd/containerd , merged 30 June 2026 and released in containerd 2.4.0 (16 September 2026). It touches exactly one function, gzipDecompress in pkg/archive/compression/compression.go , and only the decoder. Compression still goes through the standard library.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.