7-Zip Compression Speed Boosted by 97% Without Touching Core Code: An "Amateur" and AI's Extreme Optimization Experiment
7-Zip
An employee with no programming background at AI incubator Yusheng Science, aided by AI, optimized the open-source 7-Zip software, increasing compression speed by up to 97% on macOS and reducing file size by up to 40.7% for log data. The optimized version is open-sourced on GitHub, with no changes to core algorithms, ensuring compatibility with official 7-Zip.
Yusheng Science, an AI incubator, completed an optimization of 7-Zip with an employee who had no programming background. The idea was to improve compression efficiency by using a "content-aware router" that dynamically selects encoding strategies based on file type, instead of using a uniform strategy for all files. The optimization involved a multi-level detection mechanism (file header recognition, sample compression testing, and multi-point sampling for suspected compressed media), a ten-tier routing strategy, and safety measures (sample comparisons, tolerance thresholds, and grouping isolation). Results showed a 97.0% compression speed increase for multi-file archives on macOS, 93.4% for prose text, over 80% typical on Windows, and a 40.4% size reduction for logs, with 100% integrity verification. However, decompression time for text and log files increased 2-3 times, and very large incompressible files over 5GB may suffer slower compression due to misjudgments. The optimization is zero-invasive: no core algorithm code was changed, only the dispatch layer, and output remains standard .7z format, decodable by official 7-Zip. The optimized version is open-sourced on GitHub (https://github.com/sunmmer01/Optimization). Yusheng Science states this practice demonstrates a new collaboration model where AI amplifies human insight, not replacing engineers.
- Abbreviations
- LZMA2 = Lempel-Ziv-Markov chain algorithm version 2 — алгоритм сжатия LZMA версии 2
- PPMd = Prediction by Partial Matching, variant d — предсказание по частичному совпадению, вариант d
- JPEG = Joint Photographic Experts Group — Объединённая группа экспертов по фотографии
- JSON = JavaScript Object Notation — JavaScript Object Notation (текстовый формат обмена данными)
- MB = Megabyte — мегабайт
- GB = Gigabyte — гигабайт
- GitHub = GitHub (no expansion, proper name) — GitHub (платформа для хостинга кода)
Source: InfoQ 中国 —
original
