orz

richoxApache-2.0更新放缓

用 Rust 编写的高性能通用数据压缩器,适合需要快速压缩和解压各类数据的场景。

a high performance, general purpose data compressor written in the crab-lang

暂无版本815star50fork同步于 2026-11-07 07:33 UTC

怎么上手

由 README 提炼,执行前请确认
cargo install orz --git https://github.com/richox/orz --tag v1.6.2
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 Rust 写的 ROLZ 通用数据压缩器,压缩速度远快于同压缩率的 LZ 类工具

用 Rust 编写的高性能通用数据压缩器,适合需要快速压缩和解压各类数据的场景。

核心能力

  • 把输入编码为 ROLZ 匹配、2 字节词和单字节
  • 用符号排名(Move-to-Front)变换编码符号
  • 用静态 Huffman 编码器做最终压缩
  • 提供 -l0/-l1/-l2 三档压缩级别
  • 解压速度仍可接受

容易踩的坑

需先安装 Rust 与 cargo 工具链才能构建;安装命令锁定 v1.6.2 标签,升级需改 tag

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Orz

    orz -- a general purpose data compressor written in the crab-lang.

    LICENSE LICENSE Enwik8 Benchmark

    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)

    namecompressed sizeencode timedecode time
    xz -626,665,15644.936s0.812s
    orz -l226,892,8253.360s0.578s
    zstd -1926,944,22345.985s0.085s
    orz -l127,217,8252.503s0.588s
    orz -l027,898,4331.773s0.603s
    bzip2 -929,008,7584.279s1.795s
    zstd -1529,544,52622.144s0.084s
    brotli -929,685,6729.562s0.131s
    brotli -830,326,5806.004s0.139s
    zstd -1030,697,5081.958s0.082s
    brotli -731,057,7593.753s0.147s
    lzfse36,157,8280.878s0.080s
    gzip -636,548,9332.441s0.107s