https://github.com/Kitware/CMake
Revision aed227fd5ae6775a5bbdd54540666a70163c9fcb authored by Frank Winklmeier on 29 January 2018, 15:11:07 UTC, committed by Brad King on 30 January 2018, 19:04:37 UTC
For large number of targets significant amount of time is spent in cmLocalGenerator::FindGeneratorTargetToUse, which uses find_if on a vector to locate the given target. Using a map instead of vector for ImportedGeneratorTargets (as done for cmMakefile::ImportedTargets) provides a significant speedup (up to factor of 2).
1 parent 4443adc
Tip revision: aed227fd5ae6775a5bbdd54540666a70163c9fcb authored by Frank Winklmeier on 29 January 2018, 15:11:07 UTC
cmLocalGenerator: change ImportedGeneratorTargets from vector to map
cmLocalGenerator: change ImportedGeneratorTargets from vector to map
Tip revision: aed227f
File | Mode | Size |
---|---|---|
Doxygen | ||
Git | ||
GitSetup | ||
IWYU | ||
KWIML | ||
Release | ||
Scripts | ||
Sphinx | ||
cmbzip2 | ||
cmcompress | ||
cmcurl | ||
cmexpat | ||
cmjsoncpp | ||
cmlibarchive | ||
cmliblzma | ||
cmlibrhash | ||
cmlibuv | ||
cmvssetup | ||
cmzlib | ||
.NoDartCoverage | -rw-r--r-- | 39 bytes |
.clang-tidy | -rw-r--r-- | 208 bytes |
.gitattributes | -rw-r--r-- | 226 bytes |
CMakeLists.txt | -rw-r--r-- | 1.1 KB |
SetupForDevelopment.sh | -rwxr-xr-x | 416 bytes |
cmThirdParty.h.in | -rw-r--r-- | 695 bytes |
cm_bzlib.h | -rw-r--r-- | 361 bytes |
cm_curl.h | -rw-r--r-- | 372 bytes |
cm_expat.h | -rw-r--r-- | 365 bytes |
cm_jsoncpp_reader.h | -rw-r--r-- | 405 bytes |
cm_jsoncpp_value.h | -rw-r--r-- | 401 bytes |
cm_jsoncpp_writer.h | -rw-r--r-- | 405 bytes |
cm_kwiml.h | -rw-r--r-- | 435 bytes |
cm_libarchive.h | -rw-r--r-- | 471 bytes |
cm_lzma.h | -rw-r--r-- | 367 bytes |
cm_rhash.h | -rw-r--r-- | 379 bytes |
cm_uv.h | -rw-r--r-- | 357 bytes |
cm_xmlrpc.h | -rw-r--r-- | 353 bytes |
cm_zlib.h | -rw-r--r-- | 354 bytes |
Computing file changes ...