Skip to content

Commit

Permalink
Optimise GetCustomAttributes - Part 1 (dotnet#53152)
Browse files Browse the repository at this point in the history
- 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.

Co-authored-by: Ben Adams <thundercat@illyriad.co.uk>
  • Loading branch information
jkotas and benaadams committed May 24, 2021
1 parent 34e6bb4 commit 2e9cdea
Showing 1 changed file with 143 additions and 145 deletions.
Loading

0 comments on commit 2e9cdea

Please sign in to comment.