Add compression levels 0-9 to the Vortex compressor

未關閉
#11,979 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
18/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python, rust
領域
data

研究方向

This is API design across the compressor and write path, not a single fix. Start by reading BtrBlocksCompressorBuilder and WriteStrategyBuilder, and the existing with_compact() path that the level 9 tier must match. Done means a 0..=9 level setting that maps to the tiers in the issue, with the intermediate levels aliased, and the Python and FFI bindings exposing it. The issue leaves the tier contents and the open questions about Affine and vortex.rans to the maintainers.

由索引模型根據 Issue 內容生成。

描述

feature

Today the compressor only offers two modes: default and with_compact(). That leaves no fast mode for transient shuffle or spill files, and no middle tier between BitPacked and slow CPU-only Pco + Zstd.

Expose compression levels 0..=9 on BtrBlocksCompressorBuilder and WriteStrategyBuilder (plus Python/FFI bindings), leaving room between tiers for future tuning:

  • 0 (fast): minimal CPU for shuffle and spill files (Constant, FoR.v2 (#11885), BitPacked, ZigZag, lossless float Widen (#11883), ALP(BitPacked), ALPRD(BitPacked, BitPacked); skips Dict, FSST, Delta, and entropy coding). Native CPU SIMD and CUDA (~3.1 GB/s E2E write, ~28 GB/s scan across the 45-dataset 13.32 GB corpus).
  • 3 (default): balanced lakehouse and GPU default (+ Dict, RunEnd, Sparse, FSST, Delta, and vortex.pivco (#11892) where worthwhile). Native CPU SIMD and CUDA once vortex.pivco and float Widen land in vortex-cuda.
  • 6 (dense): tighter vortex.pivco thresholds (PHA / OP-PHA, plus cascading ALPRD.left_parts and FoR residuals into vortex.pivco, and OnPair on strings) reaching 2,940 MB (4.53×, -23.0% vs core 3,818 MB) across the 45-dataset corpus while keeping 18.0 GB/s scan, 3.6× faster 1K random access, and 16.9× faster scalar_at (335 ns vs 5,654 ns) than Pco.
  • 9 (compact): Pco + Zstd (with_compact() today, 2,593 MB / 5.14× across the 45 datasets) for cold archival storage where GPU decode and sub-millisecond random access are not needed.

Intermediate levels (1-2, 4-5, 7-8) can alias to a neighboring tier initially and split out later without changing the API.

Part of #11890.

主要語言
Rust
星號
3.2k
分支
239
平均合併
1 天 4 小時
30 天內合併 PR
684

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

vortex-data/vortex 的其他 Issue

查看 vortex-data/vortex 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。