Commit bf37f11
authored
Reduce allocations from calling ITypeSymbol.AllInterfaces (#79817)
* Reduce allocations from calling ITypeSymbol.AllInterfaces
This method accounts for 2.0% of allocations during completion in the CompletionInCohosting Razor speedometer test.
Razor uses this method from a couple disparate locations (mostly around detecting taghelpers and components). I've verified locally that about 2/3 of these allocations can be removed by having the InterfaceInfo cache the public symbol array information too.1 parent 6669099 commit bf37f11
File tree
1 file changed
+8
-1
lines changed- src/Compilers/CSharp/Portable/Symbols/PublicModel
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
111 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
112 | 119 | | |
113 | 120 | | |
114 | 121 | | |
| |||
0 commit comments