summaryrefslogtreecommitdiffstats
path: root/Source/cmAlgorithms.h
diff options
context:
space:
mode:
authorMilian Wolff <mail@milianw.de>2016-01-15 13:37:25 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-01-20 20:20:55 (GMT)
commitbd2384f593d0cf2c894ff781c4e5278fff2ac96c (patch)
tree4febc26007b646519fedf1d72563443fb3fdcedb /Source/cmAlgorithms.h
parentad9394f4fdb69f3f3376d7377fac0a22568aed7c (diff)
downloadCMake-bd2384f593d0cf2c894ff781c4e5278fff2ac96c.zip
CMake-bd2384f593d0cf2c894ff781c4e5278fff2ac96c.tar.gz
CMake-bd2384f593d0cf2c894ff781c4e5278fff2ac96c.tar.bz2
Optimize cmMakefile::ExpandVariablesInStringNew.
We can remove the temporary allocations required for the default-constructed t_lookup passed into the openstack by refactoring the code slightly. Furthermore, we use a vector instead of a stack, since the latter is based on a deque which is not required for a heap / lifo structure. This patch removes ~215k allocations. This hotspot was found with heaptrack.
Diffstat (limited to 'Source/cmAlgorithms.h')
0 files changed, 0 insertions, 0 deletions