diff options
| author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-01-23 23:29:13 (GMT) |
|---|---|---|
| committer | Brad King <brad.king@kitware.com> | 2018-01-31 16:03:51 (GMT) |
| commit | c0e7a137025789c41349ae0935609e7bd083587a (patch) | |
| tree | 4034ab00eb3945cacb6c33819937ed0fec4d5402 /Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp | |
| parent | 92cd3d06772ada13935790d66927ab4663c7d628 (diff) | |
| download | CMake-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 'Tests/Module/WriteCompilerDetectionHeader/multi_files.cpp')
0 files changed, 0 insertions, 0 deletions
