]> granicus.if.org Git - clang/commit
Make the parent-map use significantly less memory.
authorManuel Klimek <klimek@google.com>
Wed, 21 May 2014 13:28:59 +0000 (13:28 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 21 May 2014 13:28:59 +0000 (13:28 +0000)
commit0a0e27db47b38a159e94c2e8c6e1f5914167a2e1
tree007566c475a1d86ee2aac7f37ac15e3b606917a4
parenteea3b587677473be19533cf27db0b748a0c9e9b2
Make the parent-map use significantly less memory.

On test files I ran this on, memory consumption overall went down from
2.5G to 2G, without performance regressions.
I also investigated making DynTypedNode by itself smaller (by pulling
out pointers for everything that doesn't fit in 8 bytes). This led to
another 200-300MB saved, but also introduced a significant regression in
performance due to the memory management overhead.

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