https://github.com/Kitware/CMake
Revision c0e7a137025789c41349ae0935609e7bd083587a authored by Ben Boeckel on 23 January 2018, 23:29:13 UTC, committed by Brad King on 31 January 2018, 16:03:51 UTC
Callgrind indicated that `strlen` was being called a lot of times here due to the string comparisons. Since keywords are "sparse" in `add_custom_command`, use a hash comparison to handle keywords and then use strings for comparison since they have a built-in length parameter.
1 parent 92cd3d0
Tip revision: c0e7a137025789c41349ae0935609e7bd083587a authored by Ben Boeckel on 23 January 2018, 23:29:13 UTC
cmAddCustomCommandCommand: store keywords in strings
cmAddCustomCommandCommand: store keywords in strings
Tip revision: c0e7a13
File | Mode | Size |
---|---|---|
.github | ||
Auxiliary | ||
Help | ||
Licenses | ||
Modules | ||
Packaging | ||
Source | ||
Templates | ||
Tests | ||
Utilities | ||
.clang-format | -rw-r--r-- | 201 bytes |
.clang-tidy | -rw-r--r-- | 969 bytes |
.gitattributes | -rw-r--r-- | 1.1 KB |
.gitignore | -rw-r--r-- | 64 bytes |
.hooks-config | -rw-r--r-- | 418 bytes |
CMakeCPack.cmake | -rw-r--r-- | 9.8 KB |
CMakeCPackOptions.cmake.in | -rw-r--r-- | 12.4 KB |
CMakeGraphVizOptions.cmake | -rw-r--r-- | 153 bytes |
CMakeLists.txt | -rw-r--r-- | 30.5 KB |
CMakeLogo.gif | -rw-r--r-- | 4.4 KB |
CONTRIBUTING.rst | -rw-r--r-- | 2.1 KB |
CTestConfig.cmake | -rw-r--r-- | 440 bytes |
CTestCustom.cmake.in | -rw-r--r-- | 6.1 KB |
CompileFlags.cmake | -rw-r--r-- | 2.6 KB |
Copyright.txt | -rw-r--r-- | 5.0 KB |
DartConfig.cmake | -rw-r--r-- | 374 bytes |
README.rst | -rw-r--r-- | 3.0 KB |
bootstrap | -rwxr-xr-x | 47.8 KB |
cmake_uninstall.cmake.in | -rw-r--r-- | 790 bytes |
configure | -rwxr-xr-x | 99 bytes |
doxygen.config | -rw-r--r-- | 27.4 KB |
Computing file changes ...