summaryrefslogtreecommitdiffstats
path: root/Modules/UseJava/javaTargets.cmake.in
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2021-07-26 18:45:03 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2021-07-26 20:40:18 (GMT)
commitbf2fe903728a56755d045c768fc6cc0d46845cc5 (patch)
tree628370958badebfcaefda539aa0541b4f55d32fe /Modules/UseJava/javaTargets.cmake.in
parent7bec39dc10e821571785e503a1c14f09db8004a9 (diff)
downloadCMake-bf2fe903728a56755d045c768fc6cc0d46845cc5.zip
CMake-bf2fe903728a56755d045c768fc6cc0d46845cc5.tar.gz
CMake-bf2fe903728a56755d045c768fc6cc0d46845cc5.tar.bz2
Refactor: Speedup predicates and binary operation
Before predicates and binary ops reducers use series of `if ()` blocks to match the keywords. However, if matched the currect `arg` get replaced with evaluation result, so further `if (<match-another-keyword>)` is just wasting time/resources. This patch introduce a chain of `if` → `else if` → ..., so after first match the loop restarts w/ the next argument.
Diffstat (limited to 'Modules/UseJava/javaTargets.cmake.in')
0 files changed, 0 insertions, 0 deletions