ExpandExpressionCaptureIntoStringBuilder is spending ~4.8 of allocations resizing the string builder #2696
Labels
backlog
performance
Performance-Scenario-Build
This issue affects build performance.
Performance-Scenario-Solution-Open
This issue affects solution open performance.
Priority:2
Work that is important, but not critical for the release
triaged
Milestone
This is in a large mixed solution with collection of .NET Core and ASP.NET Core projects. Looking into this, we're resizing the underlying StringBuilder because it's default size isn't large enough when expanding an expression like
@(Compile)
(not@(Compile, '|')
because there's not a lot of those).We should change this method to figure out the up-front cost before allocating the stringbuilder:
The text was updated successfully, but these errors were encountered: