summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step9/MathFunctions/MakeTable.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-22 13:47:45 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-22 14:14:27 (GMT)
commit3f685ac3e131cbf89391b9e63163283e1e570a9b (patch)
treecf212be3c7e2367e1d035ebe2524ba68b1e12532 /Help/guide/tutorial/Step9/MathFunctions/MakeTable.cxx
parent63928f0868ae48f0b21464b466a0f8bc7b8e3369 (diff)
downloadCMake-3f685ac3e131cbf89391b9e63163283e1e570a9b.zip
CMake-3f685ac3e131cbf89391b9e63163283e1e570a9b.tar.gz
CMake-3f685ac3e131cbf89391b9e63163283e1e570a9b.tar.bz2
Use shorter names in internal TARGET_PROPERTY expressions
The change in commit 2f708f5d65 (Make internal TARGET_PROPERTY generator expressions more robust, 2018-09-07, v3.13.0-rc1~94^2~4) introduced globally unique names in synthesized `$<TARGET_PROPERTY:...>` generator. We used the pattern `<target-name>::T<pointer-to-generator-target>` to guarantee uniqueness. However, in projects that require many such expressions to be generated there was a measurable increase in runtime. We had included the target name in the synthesized genex only for human reference during debugging. It is not necessary. Switch to the pattern `:<pointer-to-generator-target>` to shorten the name. Also hand-roll a hex-print loop instead of using sprintf. Together these optimizations get at least some of the time back. Issue: #18964
Diffstat (limited to 'Help/guide/tutorial/Step9/MathFunctions/MakeTable.cxx')
0 files changed, 0 insertions, 0 deletions