Repository navigation
feat(fsst): Compute uncompressed size without decoding - #9755
Conversation
Merging this PR will degrade performance by 8.63%3 warnings, 1 note
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
|
This PR has been marked as stale because it has been open for 14 days with no activity. Please comment or remove the stale label if you wish to keep it active, otherwise it will be closed in 7 days |
|
This PR has been marked as stale because it has been open for 14 days with no activity. Please comment or remove the stale label if you wish to keep it active, otherwise it will be closed in 7 days |
Signed-off-by: Will Manning <will@willmanning.io>
Rebased onto develop, where UncompressedSizeInBytes gained an exact precision. The FSST kernel now reads the options: inexact sums all stored lengths, exact sums only valid rows too long to inline, both without decoding. The checked length sum is shared with FsstDecodePlan, since only the dtype of the stored lengths is validated on construction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018SWbEsB3Q1XMtF1BJVYPot Signed-off-by: Claude <noreply@anthropic.com>
655c3dd to
1498560
Compare
Summary
FSST already stores each value’s uncompressed length. This adds an FSST-specific
UncompressedSizeInBytesaggregate that calculates the canonical size without decoding string payloads.Changes
The kernel reads only the lengths child and accounts for canonical views and validity. It rejects negative lengths and arithmetic overflow. Tests compare results with materialized UTF-8 and binary arrays. They cover nullable, all-null, and sliced inputs.
🤖 Generated with Codex