GXD v0.0.0a2: Introducing Smart Algorithm Selection
Source: Dev.to
The Problem with Compression Today
Ever compressed a file only to find it got bigger? Spent time choosing between algorithms without knowing which would work best? That’s the problem algo.py solves.
Introducing Smart Algorithm Analysis
algo.py is a predictive analyzer that examines your data before compression and tells you exactly what will work best. It uses Shannon Entropy and pattern recognition to recommend the optimal algorithm for your specific file.
python3 algo.py mydatabase.sql --block-size 1mb
You get:
- Recommended algorithm (
lz4,zstd,brotli, ornone) - Expected compression ratio
- Estimated speed in MB/s
- Block‑by‑block analysis
How It Decides
| Data Type | Recommendation | Why |
|---|---|---|
| Encrypted/random (entropy >7.9) | none | Already incompressible |
Note: the original table entry for “Sparse/simple (entropy …)” is incomplete in the source.
License
- License: GNU GPL v3
“The best code is code that outlives its author’s active involvement.”