Static compression level wastes CPU on incompressible files #110
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Compression level is set once (default 5). Already-compressed files (jpg, mp4, zstd) waste CPU cycles being recompressed pointlessly.
Location
src/shared/compression.c
Suggested Fix
Skip compression for files with known incompressible extensions (e.g.,
.jpg,.mp4,.zip,.gz,.zst). Optionally add heuristics: compress a small sample and check ratio before committing.Severity
medium
Category
performance
Sub-Agent
perf-analyst (PA-5)
This issue was automatically generated by the issue-creator agent.
Fixed in PR #148 — merged into main on 2026-07-29.