Skip to content

Avoid RowBinary array decoder stack expansion - #432

Draft
ruslandoga wants to merge 1 commit into
masterfrom
rd/issue-426-msgpax-decoders
Draft

Avoid RowBinary array decoder stack expansion#432
ruslandoga wants to merge 1 commit into
masterfrom
rd/issue-426-msgpax-decoders

Conversation

@ruslandoga

Copy link
Copy Markdown
Collaborator

Fixes #426.

RowBinary array decoding now keeps the active element type stable and decrements a count, replacing length-proportional type-stack expansion with compact continuation frames that also handle nested Nullable, Tuple, Map, Variant, and Dynamic values.

A complete UInt8 fast path and the counted generic path improve large, chunked, and nested array decoding; a one-million-element prefix now retains 19 words instead of 2,000,009.

Tests cover legacy continuations, varint boundaries, bytewise structured arrays, and constant state size, and mix test --include slow passes all 670 executed tests.

@ruslandoga

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

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.

Avoid length-proportional stack expansion when decoding RowBinary Array

1 participant