dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
475 stars 187 forks source link

Constant GC Sweeps in Latest Preview #9395

Open Mike-E-angelo opened 9 months ago

Mike-E-angelo commented 9 months ago

This is in regard to this issue, reported nearly a month ago as having been introduced in 17.8 Preview 2: https://developercommunity.visualstudio.com/t/Constant-GC-Sweeps-in-Latest-Preview/10467581

It still persists in Preview 3.0 and makes the Visual Studio Preview band unusable to me. Please fix. :(

Recording of this available here for your review: https://developercommunity.visualstudio.com/t/Simple-Keypresses-in-Razor-File-Takes-10/10489359

Mike-E-angelo commented 9 months ago

I just added another recording here for Preview 4. However, I will say that after turning on these settings -- that is ensuring they are checked this issue along with UI freezes do not occur. 🤔

DustinCampbell commented 9 months ago

@Mike-E-angelo: Just to confirm, turning the options to "run code analysis in a separate process" off makes this less noticeable? You mentioned in #8371 that turning the options on improved your experience, so I'm curious to know if I understood you correctly.

Mike-E-angelo commented 9 months ago

Doh @DustinCampbell I had it backward. 🤦‍♂️ I have corrected it now to reflect the proper state. So yes, having it unchecked produces this issue. Checking it makes it go away (and currently reflects better performance for #8371).

DustinCampbell commented 9 months ago

Thanks for clarifying!

Mike-E-angelo commented 9 months ago

Sure thing @DustinCampbell, thank you for your patience with my oversights as well. 🙏 FWIW now that I have a viable workaround for this issue, it is not much of a priority to me. It's really #8371 and #6919 that are causing grief in my world now.