需先安装 Rust 与 cargo 工具链才能构建;安装命令锁定 v1.6.2 标签,升级需改 tag
cargo install orz --git https://github.com/richox/orz --tag v1.6.2README 未说明
用 Rust 写的 ROLZ 通用数据压缩器,压缩速度远快于同压缩率的 LZ 类工具
用 Rust 编写的高性能通用数据压缩器,适合需要快速压缩和解压各类数据的场景。
核心能力
- 把输入编码为 ROLZ 匹配、2 字节词和单字节
- 用符号排名(Move-to-Front)变换编码符号
- 用静态 Huffman 编码器做最终压缩
- 提供 -l0/-l1/-l2 三档压缩级别
- 解压速度仍可接受
容易踩的坑
暂无 release 数据(可能没有发版,或尚未同步)。
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Orz
orz -- a general purpose data compressor written in the crab-lang.
orz is an optimized ROLZ (reduced offset Lempel-Ziv) general purpose data compressor. input data is encoded as ROLZ-matches (reduced-offsets and match lengths), 2-byte words, and single bytes. then all encoded symbols are processed with a symbol ranking (aka Move-to-Front) transformer and a static huffman coder.
benefited from the ROLZ algorithm, orz compresses times faster than many other LZ-based compressors which has same compression ratio, and decompression speed is still very acceptable.
orz is completely implemented in the crab-lang. clone the repo and run cargo build --release to have an executable orz binary.
installation
you can install orz with cargo:
cargo install orz --git https://github.com/richox/orz --tag v1.6.2
usage
for compression:
orz encode <source-file-input> <compressed-file-output>
for decompression:
orz decode <compressed-file-input> <source-file-output>
for more details, see orz --help
benchmarks
benchmark for 100MB of Large Text Compression Benchmark (enwik8, see http://mattmahoney.net/dc/text.html):
(for latest enwik8 benchmark result, see github actions)
| name | compressed size | encode time | decode time |
|---|---|---|---|
| xz -6 | 26,665,156 | 44.936s | 0.812s |
| orz -l2 | 26,892,825 | 3.360s | 0.578s |
| zstd -19 | 26,944,223 | 45.985s | 0.085s |
| orz -l1 | 27,217,825 | 2.503s | 0.588s |
| orz -l0 | 27,898,433 | 1.773s | 0.603s |
| bzip2 -9 | 29,008,758 | 4.279s | 1.795s |
| zstd -15 | 29,544,526 | 22.144s | 0.084s |
| brotli -9 | 29,685,672 | 9.562s | 0.131s |
| brotli -8 | 30,326,580 | 6.004s | 0.139s |
| zstd -10 | 30,697,508 | 1.958s | 0.082s |
| brotli -7 | 31,057,759 | 3.753s | 0.147s |
| lzfse | 36,157,828 | 0.878s | 0.080s |
| gzip -6 | 36,548,933 | 2.441s | 0.107s |