-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Include "simple" UTF-8 validation and transcoding logic for interpreted and low-footprint scenarios #49372
Include "simple" UTF-8 validation and transcoding logic for interpreted and low-footprint scenarios #49372
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.SizeOpt.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.SizeOpt.cs
Outdated
Show resolved
Hide resolved
Left some minor comments, but the code and the approach generally LGTM. But I'd like to see further discussion on #48006 as to whether it's even worthwhile to take this, and if so on what platforms we should conditionally compile this in. The initial platform list proposed in the .csproj here seems quite reasonable. |
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
Outdated
Show resolved
Hide resolved
- just wasm and tvOs
Hi guys, I'm learning dotnet contributor ropes on this task, so please bear with me. I will further improve it based on the feedback, thanks for it. Regarding question, if this should be merged at all, I thought we could just try and see if the change makes it actually smaller. There is also Utf16Utility shall we consider those too ? Thanks! |
- added comments
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Text/Unicode/Utf8Utility.SizeOpt.cs
Outdated
Show resolved
Hide resolved
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, and thanks for your contribution! I'll defer to other more knowledgeable people on whether the switched platforms are correct. (To those reviewers, check the .csproj.)
…ara/48006 # Conflicts: # src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
769e603
to
9a5e6bf
Compare
/azp run runtime |
Commenter does not have sufficient privileges for PR 49372 in repo dotnet/runtime |
…nterpreted and low-footprint scenarios (dotnet#49372)" This reverts commit 197a28d. Context: dotnet#50260
trying to run unit tests on
#48006