summaryrefslogtreecommitdiffstats
path: root/Source/cmScriptGenerator.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-01-23 23:29:13 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-31 16:03:51 (GMT)
commitc0e7a137025789c41349ae0935609e7bd083587a (patch)
tree4034ab00eb3945cacb6c33819937ed0fec4d5402 /Source/cmScriptGenerator.h
parent92cd3d06772ada13935790d66927ab4663c7d628 (diff)
downloadCMake-c0e7a137025789c41349ae0935609e7bd083587a.zip
CMake-c0e7a137025789c41349ae0935609e7bd083587a.tar.gz
CMake-c0e7a137025789c41349ae0935609e7bd083587a.tar.bz2
cmAddCustomCommandCommand: store keywords in strings
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.
Diffstat (limited to 'Source/cmScriptGenerator.h')
0 files changed, 0 insertions, 0 deletions