]> granicus.if.org Git - clang/commit
Replace some typically large vectors with SmallVector.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 22 Feb 2013 18:29:39 +0000 (18:29 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 22 Feb 2013 18:29:39 +0000 (18:29 +0000)
commitf512acee01617c9da8079ed88ded3bb9f2418349
treec30895769887135415c9f804566de2d96806b38b
parent4c8cba87e49ec2fd39c1ff3b903924e791734a8a
Replace some typically large vectors with SmallVector.

This may seem counter-intuitive but the POD-like optimization helps when the
vectors grow into multimegabyte buffers. SmallVector calls realloc which knows
how to twiddle virtual memory bits and avoids large copies.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175906 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
include/clang/Basic/SourceManager.h
lib/Basic/SourceManager.cpp