KEMBAR78
Use MemoryExtensions.Count in a few places by stephentoub · Pull Request #81325 · dotnet/runtime · GitHub
Skip to content

Conversation

stephentoub
Copy link
Member

No description provided.

@ghost ghost added the area-Meta label Jan 29, 2023
@ghost ghost assigned stephentoub Jan 29, 2023
@ghost
Copy link

ghost commented Jan 29, 2023

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: stephentoub
Assignees: stephentoub
Labels:

area-Meta

Milestone: -

private static int CountOccurrences(string value, string candidate)
{
Debug.Assert(candidate != null, "CountOccurrences: Candidate string was null.");
int index = 0;
Copy link
Member Author

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.

Copy link
Member Author

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?

Copy link
Member

@eiriktsarpalis eiriktsarpalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Json change LGTM

@stephentoub stephentoub merged commit b494ef9 into dotnet:main Feb 4, 2023
@stephentoub stephentoub deleted the usecount branch February 4, 2023 22:12
@EgorBo
Copy link
Member

EgorBo commented Feb 7, 2023

Improvement on Linux-x64 dotnet/perf-autofiling-issues#12453

@EgorBo
Copy link
Member

EgorBo commented Feb 7, 2023

@stephentoub and here is a small regression - dotnet/perf-autofiling-issues#12679 and dotnet/perf-autofiling-issues#12557

@ghost ghost locked as resolved and limited conversation to collaborators Mar 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants