Commit 2e9cdea
Optimise GetCustomAttributes - Part 1 (#53152)
- 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 <[email protected]>1 parent 34e6bb4 commit 2e9cdea
File tree
1 file changed
+143
-145
lines changed- src/coreclr/System.Private.CoreLib/src/System/Reflection
1 file changed
+143
-145
lines changed
0 commit comments