kevgs created this revision. kevgs added reviewers: rsmith, bkramer. kevgs added a subscriber: cfe-commits.
In my test case 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. https://reviews.llvm.org/D23329 Files: include/clang/AST/AttrIterator.h Index: include/clang/AST/AttrIterator.h =================================================================== --- include/clang/AST/AttrIterator.h +++ include/clang/AST/AttrIterator.h @@ -39,8 +39,8 @@ namespace clang { /// AttrVec - A vector of Attr, which is how they are stored on the AST. -typedef SmallVector<Attr*, 2> AttrVec; -typedef SmallVector<const Attr*, 2> ConstAttrVec; +typedef SmallVector<Attr*, 4> AttrVec; +typedef SmallVector<const Attr*, 4> ConstAttrVec; /// specific_attr_iterator - Iterates over a subrange of an AttrVec, only /// providing attributes that are of a specific type.
Index: include/clang/AST/AttrIterator.h =================================================================== --- include/clang/AST/AttrIterator.h +++ include/clang/AST/AttrIterator.h @@ -39,8 +39,8 @@ namespace clang { /// AttrVec - A vector of Attr, which is how they are stored on the AST. -typedef SmallVector<Attr*, 2> AttrVec; -typedef SmallVector<const Attr*, 2> ConstAttrVec; +typedef SmallVector<Attr*, 4> AttrVec; +typedef SmallVector<const Attr*, 4> ConstAttrVec; /// specific_attr_iterator - Iterates over a subrange of an AttrVec, only /// providing attributes that are of a specific type.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits