You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prototype zero-bloat metadata attachment and compile-time isolation for large structs #91
Can we prototype a zero-bloat metadata attachment mechanism (e.g., out-of-band traits/descriptions avoiding long StringLiteral NTTP mangling in Debug DWARF and/or explicit compile-time isolation boundaries) that dramatically reduces Debug .o size and compile time on large reflected structs without hurting ergonomics?
Measure against real Showcase Migration:ccache#2config.cpp.o (baseline: 106.25 MB / ~101 MiB Debug .o, ~35s Debug compile on 48-field ConfigData). Target a dramatic reduction in both Debug .o size and compile time while keeping schema/CLI metadata intact.
Judges & landing: Run Judges (gemini-4-neon + claude-opus-5-5 high via antigravity delegates) on the prototype diff and measurements; if green, hand to coordinator to land on showcase/all-lanes.
In addition to ccache#2 (config.cpp.o), measure transmission/libtransmission/rpc-schema.h (TorrentInfo: 81 fields; SessionSetParams: 53 fields; baseline ~25–59s user compile time per RPC TU on AppleClang arm64 RelWithDebInfo, validating #799 / Wave 10 #61).
Recipient update:ccache has been retired as a Showcase Migration recipient (fork being deleted). Measure before/after Debug .o size and compile time against the self-contained 48-field rfl::Description<StringLiteral, DefaultVal<T>> repro from #90 plus transmission#1 and slang-server.
Measure Lane 1 compile-time & binary-size fixes against slang-server (slang_server_obj_lib 590.8s vs 389.3s upstream baseline, SlangServer.cpp.o 177.6s vs 121.2s, reflectcpp_json.cpp.o 32.0s vs 19.4s, and bin/gen_config_schema 1.70 MiB vs 1.38 MiB +23.1% from to_schema<T, DefaultIfMissing> per-field to_generic instantiation).
Landed on showcase/all-lanes at b476c548 (f062a379 + 5a263019 + b476c548), reviewed and approved by dual independent Judges (claude-opus-5-5 high + gemini-4-neon high, both APPROVE WITH NITS after fixing all initial blockers and nits).
Activity
clockblocker commentedon Nov 27, 2026
Additional Measurement Target (
clockblocker/transmission#1,6478ae0d0):ccache#2(config.cpp.o), measuretransmission/libtransmission/rpc-schema.h(TorrentInfo: 81 fields;SessionSetParams: 53 fields; baseline ~25–59s user compile time per RPC TU on AppleClang arm64RelWithDebInfo, validating#799/ Wave 10#61).clockblocker commentedon Nov 27, 2026
Recipient update:
ccachehas been retired as a Showcase Migration recipient (fork being deleted). Measure before/after Debug.osize and compile time against the self-contained 48-fieldrfl::Description<StringLiteral, DefaultVal<T>>repro from#90plustransmission#1andslang-server.clockblocker commentedon Nov 27, 2026
Active Regression Harness Target (clockblocker/slang-server#1,
bf857f4,RelWithDebInfo):slang-server(slang_server_obj_lib590.8s vs 389.3s upstream baseline,SlangServer.cpp.o177.6s vs 121.2s,reflectcpp_json.cpp.o32.0s vs 19.4s, andbin/gen_config_schema1.70 MiB vs 1.38 MiB +23.1% fromto_schema<T, DefaultIfMissing>per-fieldto_genericinstantiation).perf(#91): zero-bloat rfl::Metadata<T> and large-struct symbol/compil…
fix(#91): address dual-Judge blockers (AddStructName/C-array schema, …
test(#91): exercise SnakeCaseToCamelCase wire-name precedence and bot…
clockblocker commentedon Nov 27, 2026
Landed on
showcase/all-lanesatb476c548(f062a379+5a263019+b476c548), reviewed and approved by dual independent Judges (claude-opus-5-5high +gemini-4-neonhigh, bothAPPROVE WITH NITSafter fixing all initial blockers and nits).Implemented
include/rfl/Metadata.hpp):rfl::FieldMeta(name,description,deprecation_message) andtemplate <class T> struct rfl::Metadata {}supportingstatic constexprcontiguous ranges or out-of-linestatic std::span<const rfl::FieldMeta> fields()(guarded against dangling temporary returns viastd::ranges::borrowed_rangestatic_assert), plus optional struct-leveldescription/description().AddStructNameprefix alignment); Avro and Cap'n Protois_named_typeunwrapType::Description/Type::Deprecatedcleanly; JSONType::Deprecatedpreserves existing inline descriptions whendescription_is empty..oisolation:include/rfl/internal/cpp20/num_fields.hpp:CountFieldsHelperwithsizeof(T)upper-boundstatic_assertguard.include/rfl/parsing/ViewReader.hpp,ViewReaderWithDefault.hpp,NamedTupleParser.hpp,Parser_default.hpp,call_destructors_where_necessary.hpp: extracted free per-field helpers (never parameterized by enclosingViewType/FieldTypes...), replaced linearViewReaderfold dispatch with compile-time sorted binary-searchNameEntrytable, eliminated per-field lambdas inbuild_schemaand deferred-default checks, and added scalar/std::vector<std::string>/std::optionalfast pathto_default_generic.tests/json/test_metadata.cpp&tests/json_c_arrays_and_inheritance/test_c_array_schema_defaults.cpp— 465/465 targets, 0 warnings (-Wall -Werror,REFLECTCPP_STRICT_WARNINGS=ON), 1,093/1,093 CTests passing (1,088 runtime + 5 compile-fail/should-compile).bench/large_struct_metadata/(bench_48_desc.cpp,bench_48_metadata.cpp,bench_48_plain.cpp,README.md).Measured Results (AppleClang 17 arm64)
.o(MiB)__debug_str(MiB)__text(MiB)bench_48_desc(before#91)-O0 -gbench_48_desc(after#91, unchanged)-O0 -gbench_48_metadata(rfl::Metadata<T>)-O0 -gbench_48_plain(before → after)-O0 -gbench_48_desc(before#91)-O2 -gbench_48_desc(after#91, unchanged)-O2 -gbench_48_metadata(rfl::Metadata<T>)-O2 -gbench_48_plain(before → after)-O2 -gslang-serverkey TUs (-O2 -g, zero source changes):SlangServer.cpp:60.58 → 57.94 MiB(−4.4%.o, −24.0% mangled,33.39s → 33.15s)reflectcpp_json.cpp:12.07 → 11.19 MiB(−7.3%.o, −34.6% mangled)Config.cpp:13.01 → 12.03 MiB(−7.5%.o, −39.2% mangled,4.86s → 4.72s)gen_config_main.cpp:9.46 → 8.17 MiB(−13.6%.o, −67.9% mangled)