Skip to content

feat: add bitpacked chunk offset child - #9940

Draft
mhk197 wants to merge 1 commit into
mk/bitpacked-stack-03-width-childfrom
mk/bitpacked-stack-04-offset-child
Draft

mhk197 wants to merge 1 commit into
mk/bitpacked-stack-03-width-childfrom
mk/bitpacked-stack-04-offset-child

Conversation

@mhk197

@mhk197 mhk197 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Store u64 byte boundaries as a second layout child, including the trailing boundary. Scalar access reads only the needed child scalars; bulk kernels materialize and validate the layout once. Slices retain their original offset origin and validate boundaries before unpacking. Include malformed-offset and child-shape coverage.

Part 4/9 of the bitpacked-v2 stack (437 added + removed lines). Merge in order; each draft targets the preceding branch, starting from develop.

123456789

Validation: All 11 focused plugin, serde, and chunk-layout tests passed on this commit, including the regression that rejects direct vtable serde. Changed Rust files were formatted with nightly; git diff --check passed.

GPU execution was not tested. CUDA validation and workspace-wide all-feature Clippy were previously blocked by the nvCOMP 5.1 SDK download in this environment.

@codspeed

codspeed Bot commented Sep 18, 2026

Copy link
Copy Markdown

Merging this PR will regress 1 benchmark

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 4 improved benchmarks
❌ 1 regressed benchmark
✅ 2248 untouched benchmarks
⏩ 218 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation random_i16[0.95] 81.5 µs 99.7 µs -18.26%
WallTime arrow_checked_add_u32_neon[16384] 20.5 µs 12.3 µs +66.78%
Simulation decode_primitives[f32, (1000, 512)] 64.2 µs 42 µs +52.92%
Simulation random_i8[0.5] 96 µs 72.4 µs +32.69%
Simulation decompress[u64, (4000, 1024)] 86.9 µs 71 µs +22.34%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing mk/bitpacked-stack-04-offset-child (cfa9850) with mk/bitpacked-stack-03-width-child (bcd5b9c)2

Open in CodSpeed

Footnotes

  1. 218 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on mk/bitpacked-stack-03-width-child (d740f8f) during the generation of this report, so 553f2c9 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Signed-off-by: "Matt Katz" <mhkatz97@gmail.com>
@mhk197
mhk197 force-pushed the mk/bitpacked-stack-04-offset-child branch from 355e292 to cfa9850 Compare September 18, 2026 19:42
@mhk197
mhk197 deployed to duckdb-build September 18, 2026 19:43 — with GitHub Actions Active
@mhk197
mhk197 deployed to duckdb-build September 18, 2026 19:43 — with GitHub Actions Active
@mhk197
mhk197 deployed to duckdb-build September 18, 2026 19:43 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant