Skip to content
  • Ben Boeckel's avatar
    cmAddCustomCommandCommand: store keywords in strings · c0e7a137
    Ben Boeckel authored and Brad King's avatar Brad King committed
    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.
    c0e7a137