Repository navigation
Add PIVCO integer coding for wide integer columns - #12828
joseph-isaacs wants to merge 12 commits into
Conversation
Wide integer columns such as gnomAD's DP and MIN_DP have hundreds of distinct values, so they are bit-packed at 10 bits although they carry about 7 bits of entropy. pivco's Pow2-Bin integer codec (spiraldb/pivco#64) codes them near that entropy. Port vortex-pivco and its BtrBlocks scheme from #12528 onto pivco develop, where integer blocks share the byte codec's block layout and the tree is an IntTree, and register it in the unstable edition next to vortex.pivco_bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UeniBC8hXhFErcCKPJ3MtD Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Picks up spiraldb/pivco#57. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UeniBC8hXhFErcCKPJ3MtD Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Polar Signals Profiling ResultsLatest Run
Previous Runs (23)
Powered by Polar Signals Cloud |
The footer lists every permitted wire ID, so registering vortex.pivco adds 32 bytes to the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UeniBC8hXhFErcCKPJ3MtD Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Benchmarks: Random Access (S3) 📖Commits: PR
How to read the summary
random-access / vortex-file-compressed / ns (1.047x ➖, 0↓ 1↑)
random-access / parquet / ns (0.990x ➖, 0↓ 0↑)
random-access / lance / ns (0.987x ➖, 1↓ 1↑)
|
develop added a scope to AncestorExclusion; any_ancestor keeps the whole-subtree exclusion the scheme had. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UeniBC8hXhFErcCKPJ3MtD Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Benchmarks: Random Access 📖Commits: PR
How to read the summary
vortex / arrow-ipc / ns (1.008x ➖, 1↓ 2↑)
random-access / vortex-file-compressed / ns (0.949x ➖, 2↓ 0↑)
random-access / parquet / ns (1.003x ➖, 0↓ 0↑)
random-access / lance / ns (0.990x ➖, 0↓ 0↑)
random-access / litdata / ns (1.000x ➖, 0↓ 0↑)
|
Benchmarks: Compression 📖Commits: PR vortex / vortex-file-compressed / ns (1.026x ➖, 1↓ 7↑)
vortex / vortex-file-compressed / bytes (0.944x ➖, 5↓ 0↑)
vortex / vortex-compact / bytes (0.999x ➖, 0↓ 0↑)
vortex / parquet / ns (0.999x ➖, 0↓ 0↑)
vortex / parquet / bytes (1.000x ➖, 0↓ 0↑)
vortex / parquet-snappy / bytes (1.000x ➖, 0↓ 0↑)
vortex / arrow-ipc / ns (1.006x ➖, 0↓ 1↑)
vortex / arrow-ipc / bytes (1.000x ➖, 0↓ 0↑)
|
Benchmarks: TPC-DS SF=10 on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (33 files changed, -9.0% overall, 12↑ 21↓)
Totals:
|
Benchmarks: Statistical and Population Genetics 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (2 files changed, -12.0% overall, 1↑ 1↓)
Totals:
|
Benchmarks: TPC-H SF=10 on S3 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
|
Benchmarks: Statistical and Population Genetics on S3 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
|
Benchmarks: JOB on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (21 files changed, -6.9% overall, 7↑ 14↓)
Totals:
|
Benchmarks: FineWeb S3 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
|
Benchmarks: Appian on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (18 files changed, -1.8% overall, 10↑ 8↓)
Totals:
|
Benchmarks: FineWeb NVMe 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (2 files changed, -0.1% overall, 1↑ 1↓)
Totals:
|
Benchmarks: Clickbench Sorted on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (200 files changed, -5.9% overall, 64↑ 136↓)
Totals:
|
Benchmarks: Nested TPC-H SF=1 on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (16 files changed, -1.2% overall, 6↑ 10↓)
Totals:
|
Benchmarks: TPC-H SF=1 on S3 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
|
Benchmarks: TPC-H SF=10 on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (32 files changed, -1.1% overall, 7↑ 25↓)
Totals:
|
Benchmarks: TPC-H SF=1 on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (16 files changed, -1.2% overall, 6↑ 10↓)
Totals:
|
Benchmarks: PolarSignals Profiling 📖Commits: PR
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (1 files changed, -0.4% overall, 0↑ 1↓)
Totals:
|
Benchmarks: Clickbench on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (200 files changed, -4.6% overall, 82↑ 118↓)
Totals:
|
Benchmarks: TPC-DS SF=1 on NVME 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (48 files changed, -4.9% overall, 32↑ 16↓)
Totals:
|
Benchmarks: Vortex queries 📖Commits: PR
How to read the summary
Hot runsEach cell is the hot-run time of this PR
Cold runs (first iteration)
File Size Changes (1 files changed, +0.0% overall, 1↑ 0↓)
Totals:
|
Merging this PR will degrade performance by 11.73%2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
Pco compresses integers smaller, but PIVCO's sampled estimate could still win the selection, growing compact statpopgen from 103.0 MB to 118.9 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UeniBC8hXhFErcCKPJ3MtD Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Benchmarks: String Encoding 📖Commits: PR vortex / vortex-file-compressed / ns (1.085x ➖, 0↓ 7↑)
vortex / vortex-file-compressed / bytes (0.987x ➖, 1↓ 0↑)
|
|
Two CI failures on this PR, neither from the integer PIVCO code:
Generated by Claude Code |
be1455f to
56cd5bf
Compare
|
The Generated by Claude Code |
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk> # Conflicts: # Cargo.lock # Cargo.toml
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Wide integer columns such as gnomAD's
DPandMIN_DPhave hundreds of distinct values, so BtrBlocks bit-packs them at 10 bits although they carry about 7 bits of entropy. pivco's Pow2-Bin integer codec (spiraldb/pivco#64) codes them close to that entropy, so this adds it as a second array,vortex.pivco, next tovortex.pivco_bytesin theunstableedition, with its BtrBlocks scheme.The array and scheme are ported from #12528 (on #12103 and #12104) onto pivco
develop, where integer blocks share the byte codec's block layout.CascadingCompressor::is_scheme_allowed_in_historycomes along so the scheme can tell whether a dictionary is its baseline.Locally, statpopgen's compressed file drops from 195.8 MB on develop to 137.0 MB (-30%; 169.9 MB with #12815 alone), and TPC-H SF1 lineitem from 136.7 MB to 134.5 MB.
Stacked on #12815
Generated by Claude Code