Repository navigation
perf(parsing): isolate per-field helpers in ViewReader and ViewReaderWithDefault - #234
Open
clockblocker wants to merge 1 commit into
Open
clockblocker wants to merge 1 commit into
clockblocker wants to merge 1 commit into
Conversation
This was referenced Dec 2, 2026
…WithDefault Lifts per-field parsing, placement-move, move-assign, error-recording, and extra-field helpers out of `ViewReader<..., ViewType, ...>` and `ViewReaderWithDefault<..., ViewType, ...>` into free function templates parameterized only by each field's type (never the enclosing `ViewType`), keeping linear field-name dispatch (inline for `size_ <= 4`, out-of-line for wider structs) and the compile-time positional read fast path. Parent: depends on `fix(parsing): capture input keys matching ExtraFields member name` (preserving the `is != ViewType::pos_extra_fields()` guard). Independent of `NamedTupleParser` helper isolation; wide-struct `FieldNameLookup` follows in a dedicated child commit. Judge polish applied: - Zero `[[maybe_unused]]` annotations (per munich-data-engineering#582): unmatched-name handling dispatches directly into `handle_extra_field*` / `handle_no_extra_fields_error` with only the parameters used by each branch. Follow-up to: munich-data-engineering#795, munich-data-engineering#799
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.
Related munich-data-engineering/reflect-cpp#795 · Related munich-data-engineering/reflect-cpp#582 · Related munich-data-engineering/reflect-cpp#799
Problem
ViewReaderandViewReaderWithDefaultinstantiated per-field read, move, error, and extra-field helpers inside templates parameterized on the fullViewType.Because every field's mangled symbol repeated the entire enclosing struct, wide structs suffered$O(N^2)$ symbol and DWARF bloat on the read path.
Summary
ViewType.<= 4inline,> 4out-of-line) without capture-lambda wrappers.For Agents
upstream-queue(effb0f7c) · Score83/100(split) ·+468/-209(2f)