Commit 0c1a63f
authored
Compiler: Reduce allocations in tag helper matching (#12134)
This change simplifies and reduces allocations during tag helper
matching in `DefaultRazorIntermediateNodeLoweringPhase`. In addition, a
handful of related intermediate nodes have been cleaned up somewhat,
reducing the number of fields and making things a bit lazier. I
recommend reviewing commit-by-commit as each commit has a descriptive
message.
----
CI Build:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2777461&view=results
Test Insertion:
https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/663965
Toolset Run:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2777462&view=resultsFile tree
22 files changed
+535
-545
lines changed- src
- Compiler
- Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test
- Microsoft.AspNetCore.Razor.Language/test/Extensions
- Microsoft.CodeAnalysis.Razor.Compiler/src/Language
- Components
- Extensions
- Intermediate
- Legacy
- Microsoft.CodeAnalysis.Razor/test
- Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion
22 files changed
+535
-545
lines changedLines changed: 27 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
151 | 155 | | |
152 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
191 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
192 | 204 | | |
193 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
194 | 210 | | |
195 | 211 | | |
196 | 212 | | |
| |||
231 | 247 | | |
232 | 248 | | |
233 | 249 | | |
| 250 | + | |
| 251 | + | |
234 | 252 | | |
235 | 253 | | |
236 | 254 | | |
| |||
254 | 272 | | |
255 | 273 | | |
256 | 274 | | |
257 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
258 | 280 | | |
259 | 281 | | |
260 | 282 | | |
| |||
0 commit comments