Skip to content

cmMakefile: Improve performance of GetSource for known files

Frank Winklmeier requested to merge fwinkl/cmake:getsource_optimize into master

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

Merge request reports