-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Use MemoryExtensions.Count in a few places #81325
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
|
Tagging subscribers to this area: @dotnet/area-meta Issue Detailsnull
|
| private static int CountOccurrences(string value, string candidate) | ||
| { | ||
| Debug.Assert(candidate != null, "CountOccurrences: Candidate string was null."); | ||
| int index = 0; |
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.
This looks like a pre-existing bug that I'm assuming hasn't caused any issues due to the text being parsed not starting with a newline.
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.
@dotnet/ncl, can you confirm I'm correct here that this was a latent benign bug rather than something by design?
src/libraries/System.Text.Json/src/System/Text/Json/Reader/JsonReaderHelper.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.
Json change LGTM
|
Improvement on Linux-x64 dotnet/perf-autofiling-issues#12453 |
|
@stephentoub and here is a small regression - dotnet/perf-autofiling-issues#12679 and dotnet/perf-autofiling-issues#12557 |
No description provided.