aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2013-01-19 11:03:44 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2013-01-19 11:03:44 +0000
commita8ceb7a8012faf60cfe23b95193c1dfb9bbe9942 (patch)
tree5f03c1beeab3b6522f8b7f91e4c10a59dd43dcb2 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent2f1328b35b9927a5b4c58c8f041c400d17ebd42d (diff)
downloadllvm-a8ceb7a8012faf60cfe23b95193c1dfb9bbe9942.zip
llvm-a8ceb7a8012faf60cfe23b95193c1dfb9bbe9942.tar.gz
llvm-a8ceb7a8012faf60cfe23b95193c1dfb9bbe9942.tar.bz2
[cindex.py] Add cache for CompletionChunk spellings
Most of the CompletionChunks represent braces, colons or other one character spellings. There is no need to call libclang, to figure out how to write a colon. Instead we use an internal cache to retrieve the correct spelling. As function calls from python are very expensive and this is a performance critical part of auto completion this patch makes formatting of auto completion results a lot faster. Formatting time changes from 0.57 to 0.45 seconds llvm-svn: 172901
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions