Skip to content

Map (Lane 1): Core Hygiene & Perf #85

Backlog
4 of 4 issues completed
Backlog

Description

@clockblocker

Destination

Eliminate compile-time and Debug object-size cliffs on large reflected structs, and settle core wrapper composition and bitflag-enum ergonomics on showcase/all-lanes.

Phase 1 Status: COMPLETE (fork/showcase/all-lanes d0f1fca1 · 0/4 open child tickets). Phase 2 Wave 1 staged & dual-Judge approved as #118 + #119.

Notes

  • Parent map: Map: Close reflect-cpp Adoption Gaps into showcase/all-lanes.
  • Phase 2 mapping (PLANNED_PR_WAVES.md):
    • Merged upstream: #799 (fork #54, $O(N)$ no_duplicate_field_names, refs #350).
    • Live upstream: #802 (fork #76, enum-string-view, closes #565), #803 (fork #55, strict public-header warnings).
    • Wave 1 (READY NOW): #118 (perf-parser-symbol-isolation) + #119 (feat-rfl-metadata, stacked on #118) — staged on origin/main 290bdb24, dual-Judge approved (superseding fork #61).
    • Parked in #116 (Easy & Landable): #77 (fix-rename-skip-duplicate), #110 (AppleClang 17 anonymous-namespace num_fields, 4861aafd), #113 (CMake SYSTEM includes, 4861aafd; supersedes dup #111).
    • Parked in #117 (Moonshots): #92 (broad wrapper rewrite), #93 (wrapped bitflag enums).
  • Phase 1 Showcase & Benchmark Evidence (archived research artifacts):
    • clockblocker/slang-server#1 (bf857f4, RelWithDebInfo AppleClang 17 arm64): baseline surfaced +51.8% slang_server_obj_lib / +65.1% reflectcpp_json.cpp.o / +23.1% gen_config_schema regression; #91 (b476c548) shrank all 4 key slang-server TUs (−4.4% to −13.6% .o, up to −67.9% mangled symbols).
    • clockblocker/transmission#1 (6478ae0d0): 81-field TorrentInfo & 53-field SessionSetParams validated #799 + #90/#91.

Decisions so far

  • Profile and root-cause 101 MiB Debug object-file and compile-time explosion on wrapper-annotated structs: Profiled 48-field Description<StringLiteral, DefaultVal<T>> (148.7 MiB Debug .o, 97.8% __debug_str + mangled symbols vs 0.4% __text) and slang-server (SlangServer.cpp 39.4s / 60.6 MiB); ranked 5 levers (out-of-band rfl::Metadata<T>, free per-field helpers + binary-search ViewReader, exponential+binary CountFieldsHelper, scalar Generic fast path in DefaultIfMissing schema, dead ViewReader elimination) to unblock #91.
  • Prototype zero-bloat metadata attachment and compile-time isolation for large structs: Landed rfl::Metadata<T> + O(log N) num_fields + free non-ViewType helpers + sorted ViewReader + scalar to_default_generic on showcase/all-lanes (b476c548); cut 48-field Debug .o 148.71 → 13.21 MiB (−91.1%, −52.0% wall) (−42.5% even on unchanged inline Description code) and shrank all 4 slang-server key TUs (−4.4% to −13.6% .o, up to −67.9% mangled symbols) with 1,093/1,093 CTests passing. Carved into Phase 2 Wave 1 PRs #118 + #119.

Not yet specified

  • Upstream review of Wave 1 (#118 + #119): Open upstream once live PR slot clears and address any maintainer feedback.

Out of scope

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:map

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions