cmMakefile: Improve performance of GetSource for known files
Store "Known" files separately in KnownFileSearchIndex
. This avoids
creating the rather expensive cmSourceFileLocation
object for source
files that are already known. For large projects this results in a
factor 3-4 speedup of cmGlobalGenerator::Compute()
. In our project this shaved of 90 seconds of the cmake configuration.
I don't think the fix is particularly nice and I would be happy to hear other suggestions.
Edited by Frank Winklmeier