-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Optimize parsing and serialization of generic type names in Xaml, decrease allocs #9940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@h3xds1nz this PR is good to be merged. Can you please resolve the merge conflicts. |
0742fdf
to
98b33ee
Compare
@himgoyalmicro Done :) |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9940 +/- ##
===================================================
- Coverage 11.45872% 11.23175% -0.22697%
===================================================
Files 3214 3352 +138
Lines 648458 668017 +19559
Branches 71511 74983 +3472
===================================================
+ Hits 74305 75030 +725
- Misses 572989 591824 +18835
+ Partials 1164 1163 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Thank you, @h3xds1nz, for your consistent and valuable contributions. |
@himgoyalmicro Thank you for reviewing :) |
Description
Optimizes retrievals of subscripts/type names from generic types and also its serialization back to string.
This is meant to be very straightforward (as the main modification is done to
GenericTypeNameScanner.StripSubscript
and other modifications are just to comfort the change), so a lot of strings were kept, that's not an oversight. I believe those changes should be done in small batches.Customer Impact
Improved performance, decreased allocations.
Regression
No.
Testing
Local build, unit tests.
Risk
Low.
Microsoft Reviewers: Open in CodeFlow