Skip to content
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

Revert UnicodeDebug.cs to not depend on the Debug.Assert interpolated string handler #55954

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

stephentoub
Copy link
Member

Turns out we use this file outside of corelib, in projects that build for pre-.NET 6, and the change was causing lots of string formatting for asserts that pass.

cc: @eiriktsarpalis

… string handler

Turns out we use this file outside of corelib, in projects that build for pre-.NET 6, and the change was causing lots of string formatting for asserts that pass.
@dotnet-issue-labeler
Copy link

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.

@GrabYourPitchforks
Copy link
Member

Curious - how did you notice the regression? These methods only have implementations when compiling debug / checked, and I'm not aware of any automation which tracks file sizes under these configurations.

@stephentoub
Copy link
Member Author

stephentoub commented Jul 19, 2021

Not a size issue, but a time issue. @eiriktsarpalis noticed a System.Text.Json test that was getting flagged as long-running (on .NET Framework). Profiling it showed it spending 70% of its time here. 😦

@stephentoub stephentoub merged commit 3d14674 into main Jul 20, 2021
@stephentoub stephentoub deleted the stephentoub-patch-1 branch July 20, 2021 01:18
@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants