]> granicus.if.org Git - clang/commit
Eliminate memory allocation from most invocations of
authorDouglas Gregor <dgregor@apple.com>
Mon, 28 Jan 2013 16:46:33 +0000 (16:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 28 Jan 2013 16:46:33 +0000 (16:46 +0000)
commitd3cf5fba332fc77f7e72ef58077822606718671d
tree87fd322e2cd4ff3a4961839b00b8d29dd9169132
parentd75ff6496bfb599a9edde41681873919d4d44152
Eliminate memory allocation from most invocations of
ModuleManager::visit() by keeping a free list of the two data
structures used to store state (a preallocated stack and a visitation
number vector). Improves -fsyntax-only performance for my modules test
case by 2.8%. Modules has pulled ahead by almost 10% with the global
module index.

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