Repository navigation
perf(generator): share semantic models per source file - #169
Merged
Merged
Conversation
- Reuse bound members across call sites in a compilation copy. - Add regression coverage for model reuse. - Measure XAML view generation across binding counts.
glennawatson
enabled auto-merge (squash)
October 4, 2026 04:27
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #169 +/- ##
=======================================
Coverage 99.28% 99.28%
=======================================
Files 403 403
Lines 15028 15033 +5
Branches 2227 2229 +2
=======================================
+ Hits 14920 14925 +5
Misses 108 108 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
glennawatson
added a commit
that referenced
this pull request
Oct 4, 2026
- Reuse bound members across call sites in a compilation copy. - Add regression coverage for model reuse. - Measure XAML view generation across binding counts.
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.



Summary
Views with many XAML bindings rebuild faster.
Why
XAML bindings repeatedly bound the same activation lambda.
Closes #166.
Breaking changes
None.
How this was verified
Tests cover model reuse, isolation, parallel reads and generated code.
Ran benchmarks, v2rayN rebuilds, desktop examples and the Native AOT sample.
Notes for the reviewer
Review the cache lifetime in
CallSiteContext.ModelFor.Checklist