Repository navigation
More optimizations; particularly for tuples - #795
Merged
Merged
Conversation
This was referenced Nov 27, 2026
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Nov 29, 2026
…tors, and flatten Moves per-field serialization, schema building, missing-field handling, and destructor helpers out of `NamedTupleParser<..., FieldTypes...>` into free templates parameterized only on each field's type (never the enclosing `NamedTuple` pack), and skips instantiating destructors for trivially destructible fields/arrays. Eliminates O(N^2) symbol-table and DWARF growth on wide structs with zero public API changes. Split from parser-symbol-isolation (#118) into an independent, reviewable chunk (no lookup algorithm changes; `to_default_generic` fast-path and `ViewReader` isolation follow in separate commits). Follow-up to: munich-data-engineering#795, munich-data-engineering#799 Downstream receipts (combined Wave 1 N=3 interleaved medians vs main): - hudson-trading/slang-server (`SlangServer.cpp` Debug): -15.0% `.o` Clang, -9.6% GCC, -6.1% wall - openmoq/moqx (`Loader.cpp` Debug): -17.5% `.o` Clang, -13.5% GCC, -4.4% wall - FANUC-CORPORATION/fanuc_driver (`serialization.cpp` Debug): -27.1% `.o` Clang, -9.9% wall - games-on-whales/wolf (`unix_socket_server.cpp` Release): -19.4% `.o` Clang
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Nov 29, 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
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Nov 29, 2026
…tors, and flatten Moves per-field serialization, schema building, missing-field handling, and destructor helpers out of `NamedTupleParser<..., FieldTypes...>` into free templates parameterized only on each field's type (never the enclosing `NamedTuple` pack), and skips instantiating destructors for trivially destructible fields/arrays. Eliminates O(N^2) symbol-table and DWARF growth on wide structs with zero public API changes. Split from parser-symbol-isolation (#118) into an independent, reviewable chunk (no lookup algorithm changes; `to_default_generic` fast-path and `ViewReader` isolation follow in separate commits). Follow-up to: munich-data-engineering#795, munich-data-engineering#799 Downstream receipts (combined Wave 1 N=3 interleaved medians vs main): - hudson-trading/slang-server (`SlangServer.cpp` Debug): -15.0% `.o` Clang, -9.6% GCC, -6.1% wall - openmoq/moqx (`Loader.cpp` Debug): -17.5% `.o` Clang, -13.5% GCC, -4.4% wall - FANUC-CORPORATION/fanuc_driver (`serialization.cpp` Debug): -27.1% `.o` Clang, -9.9% wall - games-on-whales/wolf (`unix_socket_server.cpp` Release): -19.4% `.o` Clang
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Nov 29, 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
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Nov 29, 2026
…tors, and flatten Moves per-field serialization, schema building, missing-field handling, and destructor helpers out of `NamedTupleParser<..., FieldTypes...>` into free templates parameterized only on each field's type (never the enclosing `NamedTuple` pack), and skips instantiating destructors for trivially destructible fields/arrays. Eliminates O(N^2) symbol-table and DWARF growth on wide structs with zero public API changes. Split from parser-symbol-isolation (#118) into an independent, reviewable chunk (no lookup algorithm changes; `to_default_generic` fast-path and `ViewReader` isolation follow in separate commits). Follow-up to: munich-data-engineering#795, munich-data-engineering#799 Downstream receipts (combined Wave 1 N=3 interleaved medians vs main): - hudson-trading/slang-server (`SlangServer.cpp` Debug): -15.0% `.o` Clang, -9.6% GCC, -6.1% wall - openmoq/moqx (`Loader.cpp` Debug): -17.5% `.o` Clang, -13.5% GCC, -4.4% wall - FANUC-CORPORATION/fanuc_driver (`serialization.cpp` Debug): -27.1% `.o` Clang, -9.9% wall - games-on-whales/wolf (`unix_socket_server.cpp` Release): -19.4% `.o` Clang
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Nov 29, 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
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Nov 30, 2026
…tors, and flatten Moves per-field serialization, schema building, missing-field handling, and destructor helpers out of `NamedTupleParser<..., FieldTypes...>` into free templates parameterized only on each field's type (never the enclosing `NamedTuple` pack), and skips instantiating destructors for trivially destructible fields/arrays. Eliminates O(N^2) symbol-table and DWARF growth on wide structs with zero public API changes. Split from parser-symbol-isolation (#118) into an independent, reviewable chunk (no lookup algorithm changes; `to_default_generic` fast-path and `ViewReader` isolation follow in separate commits). Follow-up to: munich-data-engineering#795, munich-data-engineering#799 Downstream receipts (combined Wave 1 N=3 interleaved medians vs main): - hudson-trading/slang-server (`SlangServer.cpp` Debug): -15.0% `.o` Clang, -9.6% GCC, -6.1% wall - openmoq/moqx (`Loader.cpp` Debug): -17.5% `.o` Clang, -13.5% GCC, -4.4% wall - FANUC-CORPORATION/fanuc_driver (`serialization.cpp` Debug): -27.1% `.o` Clang, -9.9% wall - games-on-whales/wolf (`unix_socket_server.cpp` Release): -19.4% `.o` Clang
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Nov 30, 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
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Dec 1, 2026
…tors, and flatten Moves per-field serialization, schema building, missing-field handling, and destructor helpers out of `NamedTupleParser<..., FieldTypes...>` into free templates parameterized only on each field's type (never the enclosing `NamedTuple` pack), and skips instantiating destructors for trivially destructible fields/arrays. Eliminates O(N^2) symbol-table and DWARF growth on wide structs with zero public API changes. Split from parser-symbol-isolation (#118) into an independent, reviewable chunk (no lookup algorithm changes; `to_default_generic` fast-path and `ViewReader` isolation follow in separate commits). Follow-up to: munich-data-engineering#795, munich-data-engineering#799 Downstream receipts (combined Wave 1 N=3 interleaved medians vs main): - hudson-trading/slang-server (`SlangServer.cpp` Debug): -15.0% `.o` Clang, -9.6% GCC, -6.1% wall - openmoq/moqx (`Loader.cpp` Debug): -17.5% `.o` Clang, -13.5% GCC, -4.4% wall - FANUC-CORPORATION/fanuc_driver (`serialization.cpp` Debug): -27.1% `.o` Clang, -9.9% wall - games-on-whales/wolf (`unix_socket_server.cpp` Release): -19.4% `.o` Clang
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Dec 1, 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 was referenced Dec 2, 2026
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
Dec 2, 2026
…tors, and flatten Moves per-field serialization, schema building, missing-field handling, and destructor helpers out of `NamedTupleParser<..., FieldTypes...>` into free templates parameterized only on each field's type (never the enclosing `NamedTuple` pack), and skips instantiating destructors for trivially destructible fields/arrays. Eliminates O(N^2) symbol-table and DWARF growth on wide structs with zero public API changes. Split from parser-symbol-isolation (#118) into an independent, reviewable chunk (no lookup algorithm changes; `to_default_generic` fast-path and `ViewReader` isolation follow in separate commits). Follow-up to: munich-data-engineering#795, munich-data-engineering#799 Downstream receipts (combined Wave 1 N=3 interleaved medians vs main): - hudson-trading/slang-server (`SlangServer.cpp` Debug): -15.0% `.o` Clang, -9.6% GCC, -6.1% wall - openmoq/moqx (`Loader.cpp` Debug): -17.5% `.o` Clang, -13.5% GCC, -4.4% wall - FANUC-CORPORATION/fanuc_driver (`serialization.cpp` Debug): -27.1% `.o` Clang, -9.9% wall - games-on-whales/wolf (`unix_socket_server.cpp` Release): -19.4% `.o` Clang
clockblocker
added a commit
to clockblocker/reflect-cpp
that referenced
this pull request
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.
No description provided.