]> granicus.if.org Git - clang/commit
Reduce the number of allocations required for AST attributes. In test cases, the...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 16 Aug 2016 14:48:39 +0000 (14:48 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 16 Aug 2016 14:48:39 +0000 (14:48 +0000)
commit5d7cb14e4beeb4b742fd5c117e47e95c0b0bad1d
treef287edbd690f276208a91f54151291d53c0f117b
parent58beb8276e876dc62fdd159c068a5e92e031a9c9
Reduce the number of allocations required for AST attributes. In test cases, the max resident memory changed from 65760k to 64476k which is 1.9% improvement. Allocations in grow_pod changed from 8847 to 4872 according to tcmalloc heap profiler. Overall running time remained the same.

Patch by Eugene Kosov

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278812 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/AttrIterator.h