-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Reduce string interpolation overhead #114497
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.
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
Tagging subscribers to this area: @dotnet/area-system-runtime |
@pentp is there a minimal repro for it? |
Minimal repro: https://godbolt.org/z/WcnoMG9GK |
@AndyAyersMS looks like something EA could help with?
|
If we expand |
/ba-g failures are unrelated |
For
Nullable<T>
whereT:ISpanFormattable
removes a lot of dead code fornull
values (ToString
andAppendLiteral
calls).For reference types removes many redundant null checks and two interface casts (
CORINFO_HELP_CHKCASTINTERFACE
).For non-null
Nullable<T>
theCORINFO_HELP_BOX_NULLABLE
allocation still remains - this needs fixing in JIT.