Repository navigation
[variant] Reuse decoded metadata keys during reconstruction - #1501
Open
XiaoHongbo-Hope wants to merge 1 commit into
Open
XiaoHongbo-Hope wants to merge 1 commit into
XiaoHongbo-Hope wants to merge 1 commit into
Conversation
XiaoHongbo-Hope
force-pushed
the
codex/reuse-rebuild-metadata-keys
branch
from
November 23, 2026 09:58
22e10a4 to
b1f4492
Compare
XiaoHongbo-Hope
marked this pull request as ready for review
November 23, 2026 14:38
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.
Full shredded Variant reconstruction repeatedly decodes dictionary offsets and UTF-8 keys while validating residual objects. Reuse decoded keys from the existing bounded rebuild cache for ID lookups. The name map and ID vector share strings; both count toward the cache budget. Structural, ordering, bounds and nesting validation remain enabled.
Based directly on main, with no build dependency on #1405 or #1496. #1405 modifies the same rebuild path and requires integration/rebase coordination.
On a fixed 1,344-row fixture, 8 vCPU and three rotated runs, full-read planning + Arrow materialization fell from 1.847s to 1.573s (15% less time); CPU fell from 1.656s to 1.405s. Both benchmark arms include #1405 and #1496, so this measures only the incremental optimization. Python conversion/checking is excluded. All 36 queries passed logical-value checks. The plain reference remains faster (~0.49s); this is not a production-scale throughput claim.
Validation: 122 Variant tests passed, 2 existing ignored; formatting/diff checks passed. New tests cover nested/corrupted values, Unicode dictionaries, invalid IDs and cache identity. Keeping this PR in draft.