[Draft] Experiment with manual C# name reduction#10885
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This reverts commit 59eb312.
commit: |
|
No changes needing a change description found. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Network post-processing performance experiment resultsDocumenting the current experiment state before switching back to the Network MPG migration work. Network generator-only timingAll runs used the saved Network generator inputs from
Artifacts: Bounded parallelism follow-upI also tried an env-var-gated bounded document-processing experiment (
Artifacts: ConclusionThis PR is useful as an experiment, but the manual reducer approach is not currently a Network performance improvement. The bounded-parallelism experiment was removed from the working tree after it failed to beat Recommended next direction is deeper phase/document-size instrumentation around Roslyn workspace post-processing, then target reducing the number or size of documents that go through semantic simplification rather than replacing Roslyn simplification wholesale. |
Summary
Experiment with generated C# post-processing that avoids the remaining Roslyn
Simplifier.ReduceAsyncpass and instead performs targeted manual cleanup before writing generated files.This is intentionally a draft/experiment branch for measuring output gaps and deciding which simplification categories are worth handling directly in the generator.
Current experiment
main.System.Simplifier.ReduceAsynccall.global::aliases in code and XML doc triviathis.qualification where safeByte[]/Char[]Safety coverage added
Targeted
GeneratedCodeWorkspacetests cover:this.qualification reduction and local-name conflict preservationFindings so far
Local
Generate.ps1succeeds. Generated test-project output now matches the checked-in baselines:global::category reduced from ~4838 to 0 added occurrencesValidation
GeneratedCodeWorkspacesafety tests passed.npm run build:generatorpassed.pwsh ./eng/scripts/Generate.ps1passed.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com