-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Use char override Writer for System.Private.Xml #61722
Conversation
Tagging subscribers to this area: @dotnet/area-system-xml Issue Detailsnull
|
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.
I welcome making the code more consistent --even though any performance benefits are likely theoretical-- but does this actually change all occurrences of single-character strings in the codebase? A simple regex search seems to indicate that there many more that this PR is not touching. Note that this does not limit to TextWriter.Write
overloads, there also seem to be other internal classes with a similar API pattern, such as IndentedWriter
.
src/libraries/System.Private.Xml/src/System/Xml/Serialization/Compilation.cs
Outdated
Show resolved
Hide resolved
@eiriktsarpalis done |
I've marked this PR as "needs more info" for now. We'd like to better understand the risk/reward for the series of XML changes. See #61773 (comment). Thanks! |
@@ -274,7 +274,7 @@ internal virtual void WriteQualifiedName(string prefix, string localName, string | |||
if (prefix.Length != 0) | |||
{ | |||
WriteString(prefix); | |||
WriteString(":"); | |||
WriteCharEntity(':'); |
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.
Why would you want to create a character entity here? (and in the other places that you modified)
This pull request has been automatically marked |
No description provided.