Hi Remco,
Here are the results. The key takeaway: it has something to do with Windows Defender.
- every '/' is stuttered
- it happens even if all NCrunch windows are closed
- it happens even in 'Execute tests manually' engine mode
- it happens even if 'Max number of processing threads' setting is set to 1
- it happens even if 'instrument output assembly' is set to False for all the solution
- Log Verbosity was set to Summary
- there are no hidden warnings
- I've tried with another solution of the similar size, the lag is there, too
- Extensions installed (some of them come built-in when VS is installed):
-
- HgSccPackage
- GhostDoc Community
- WakaTime
- Layouts O Rama
- Editor Guidelines
- Color Theme Editor
- Developer Analytics Tools
- Cloud Explorer
- Microsoft Library Manager
- Live Share
- Visual Studio IntelliCode - I disabled this one and the lag is still there
- Dotnet Extensions for Test Explorer
- I only have Windows Defender (Windows 10 Pro). When I disable Real-time protection, the is (almost) gone. '/' are almost without lag (maybe one or two '/' in the whole line, but not the first one). It is still a bit less responsive than with NCrunch engine disabled.
- One note about Windows Defender: I have the whole source directory tree excluded from the real time protection (and it's not on the system disk). So it has to be some files somewhere else on the disk.
- CPU usage while slashing: the process with highest usage is devenv, but it only uses 5-7%. Everything else is 1% or below. System idle is around 84-87%
- I have a very similar setup on another machine (new laptop) and the VS2019 lag problem is the same and also disabling Defender real-time protection reduces the lag significantly. Again, it worked without the lag in VS2017.