Columnar v5: grammar and derived columns, categorical bit packing, patched frames - #18
Merged
Conversation
… k>=2, grammar digit semantics, closed profile domain
…des, PFOR, vectors
…ch: profile size accounting for grammar and derived columns
…dability bound for columnar, deferred row materialization, span/case/participation vectors, closed-profile vectors, v2 fingerprint case, trainer guards
…s at encode, discriminating profile vectors, trainer prices deflate
…leaves, grammar caps, literal and case rules; dictionary ceiling test
…ches what shipped
…ython port finding)
…late until the aggregate qualifies, spec links to v5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One coordinated plan bump that implements the four remaining compression concepts, specified first and gated at every step.
What the wire gains (spec/plan-columnar-v5.md, profile v2)
evt_{seq36}_{hex8}); matching values travel as one small integer per token lane, riding the existing delta/frame machinery. Four bits per hex digit instead of eight, and sequences for nearly nothing.actorId → actorEmail) recorded once in the profile; conforming rows ship zero bytes.durationMs-shaped columns stop paying outlier width on every row.The old "declared count payable by remaining input" rule is incompatible with width-zero columns and is now scoped to row encoding; columnar counts are bounded by
maxItemsplus a newmaxAmplificationdecode-policy limit, mirrored at encode so the encoder never emits what its decoder refuses. Row materialization is deferred until all columns decode.Measured (500-message corpora, per message)
On the profiled stream, stacking Brotli on top now loses bytes on four of five routes. Site and READMEs updated to the new numbers; the profiled rows drop Brotli.
Process
maxByteLengthasymmetry, fixed here.🤖 Generated with Claude Code