Skip to content

[variant] Reuse decoded metadata keys during reconstruction - #1501

Open
XiaoHongbo-Hope wants to merge 1 commit into
apache:mainfrom
XiaoHongbo-Hope:codex/reuse-rebuild-metadata-keys
Open

XiaoHongbo-Hope wants to merge 1 commit into
apache:mainfrom
XiaoHongbo-Hope:codex/reuse-rebuild-metadata-keys

Conversation

@XiaoHongbo-Hope

@XiaoHongbo-Hope XiaoHongbo-Hope commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

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.

@XiaoHongbo-Hope
XiaoHongbo-Hope force-pushed the codex/reuse-rebuild-metadata-keys branch from 22e10a4 to b1f4492 Compare November 23, 2026 09:58
@XiaoHongbo-Hope
XiaoHongbo-Hope marked this pull request as ready for review November 23, 2026 14:38
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