Cache macro expander objects to avoid thrashing malloc in heavy expansion situations.
This doesn't significantly improve carbon.h, but it does speed up INPUTS/macro_pounder_obj.c by 48% git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39864 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- Lex/MacroExpander.cpp 27 additions, 14 deletionsLex/MacroExpander.cpp
- Lex/Preprocessor.cpp 33 additions, 6 deletionsLex/Preprocessor.cpp
- include/clang/Lex/MacroExpander.h 21 additions, 3 deletionsinclude/clang/Lex/MacroExpander.h
- include/clang/Lex/Preprocessor.h 5 additions, 0 deletionsinclude/clang/Lex/Preprocessor.h
Loading
Please register or sign in to comment