We're using the
Warnings Plugin in our CI build, and doing some time-stamp logging in our build, I've found that 1 miunte of our 13 minute build is spent here:
11:13.1 00:10.6 [WARNINGS] Parsing warnings in console log with parser MSBuild Custom
11:23.8 01:10.8 [WARNINGS] Computing warning deltas based on reference build #515
12:34.5 00:00.0 [TASKS] Scanning folder 'C:\Workspace\MyProject' for files matching the pattern '**/*.cs,**/*.xaml' - excludes:
The first column is a relative timestamp within the build (thanks to
Timestamper plugin). The second column is the time until the
next timestamp. So the time between "Parsing warnings"... until "Computing warning deltas" was 10 seconds. But then the time from "Computing warning deltas" until the task scanning starts was over 1 minute!
I don't know exactly what the warning delta calculation involves, but it appears to be quite intensive!
Does anyone have insight to why this might be slow?
FWIW, out project has ~50 warnings out of 1M+ lines of code (though the warnings are extracted from the build's console output, not the source lines).