diff options
author | Milian Wolff <mail@milianw.de> | 2016-01-15 13:37:25 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-01-20 20:20:55 (GMT) |
commit | bd2384f593d0cf2c894ff781c4e5278fff2ac96c (patch) | |
tree | 4febc26007b646519fedf1d72563443fb3fdcedb /Source/cmAlgorithms.h | |
parent | ad9394f4fdb69f3f3376d7377fac0a22568aed7c (diff) | |
download | CMake-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