Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented May 24, 2021

  • Use is/is not instead of ==/!=. Avoids overhead from operator overloading
  • Pass ListBuilder as ref instead of out. Avoids redundant initialization to default.
  • Use HashSet instead of Dictionary.

- Use is/is not instead of ==/!=. Avoids overhead from operator overloading
- Pass ListBuilder as ref instead of out. Avoids redundant initialization to default.
- Use HashSet instead of Dictionary.
@stephentoub
Copy link
Member

Pass ListBuilder as ref instead of out. Avoids redundant initialization to default.

Does this end up making a measurable difference?

@jkotas
Copy link
Member Author

jkotas commented May 24, 2021

Pass ListBuilder as ref instead of out. Avoids redundant initialization to default.

Does this end up making a measurable difference?

This PR is a subset of changes peeled off from #45121. I do not think any one of changes make a huge difference, just saving a few instructions here or there, but it adds up in aggregate.

@jkotas
Copy link
Member Author

jkotas commented May 24, 2021

The failure is infrastructure issue: azure.devops.exceptions.AzureDevOpsClientRequestError: Operation returned an invalid status code of 503.

@jkotas jkotas merged commit 2e9cdea into dotnet:main May 24, 2021
@jkotas jkotas deleted the CustomAttribute branch May 24, 2021 04:36
Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

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

Thanks for doing this, @jkotas!

@ghost ghost locked as resolved and limited conversation to collaborators Jun 23, 2021
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.

4 participants