-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RoutePatternAnalyzer (ASP0017, ASP0018) performance issue (1.5 minute execution time) #53899
Comments
Can you selectively disable the analyzers to find which one? Is it possible to reduce the relevant code to get an idea whether there's some part that's causing the slowdown? |
@danmoseley Disabling via the editor config or what do you have in mind? Reducing the code is somewhat hard. However removing EF Core migration from the compilation via Edit: It makes sense to me that removing the migrations improves the performance as ASP0017/ASP0018 both target lambda expressions. In my instance the migrations directory contains a whopping ~22k lambdas. |
@captainsafia thus far we haven't found any compiler regressions. For a bit we thought there was a tier'd JIT issue but that is looking less likely. This looks like a case where i'd start by taking a look at the ETL and see what is taking time up in the analyzer. |
Would it be of any help to send binlogs or complogs? |
A complog would definitely help here. Note: complog will effectively send your entire project source so if that is non-public please file a VS feedback issue so you can share it privately. |
@jaredpar Thank you, I am aware of this. Sadly I am not able to open a Visual Studio Feedback, as the Web-App keeps telling me that VS is not connected. I already tried through the VS Installer as well, as well as logging out and in again. Is there a way to open a ticket without VS being "connected"? |
@TwentyFourMinutes AFAIK, issues like this might be related to anti-virus/proxies/etc running on your machine that might interfere in the connection between VS and your browser. Do you suspect that might be at play? You mentioned that the issue starts to happen about 2.5 weeks ago. Do you recall making any version updates or changes around that time? |
@captainsafia Effectively the only thing that might interfere here is either Bitdefender or Brave. Anyhow I also once disabled the Bitdefender AV in the settings. No proxy or anything else that should interfere. However I'll check again tomorrow. The only "big" changes were:
Its very hard to say which one caused the issue in particular as I did all of these changes in close proximity to each other. On a different note I could checkout the affected project directly pre/post the .NET 8 update (again, I think I tried it before with the same poor performance on both versions, HOWEVER I definitely didn't pin the SDK version with a global.json) to see if there is any difference. |
Should be fixed by #54479 |
Is there an existing issue for this?
Describe the bug
For roughly 2.5 weeks now I am experiencing extremely slow build times.
dotnet build
says thatCore Compile
takes forever here. Through the MSBuild Structured Log Viewer I was able to track down a few analyzers:I can't really tell why this is happening.
Disabling analyzers on the project DOES help:
Expected Behavior
Better performance.
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.200-preview.23624.5
Anything else?
The text was updated successfully, but these errors were encountered: