diff options
| author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-01-19 11:03:44 +0000 |
|---|---|---|
| committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-01-19 11:03:44 +0000 |
| commit | a8ceb7a8012faf60cfe23b95193c1dfb9bbe9942 (patch) | |
| tree | 5f03c1beeab3b6522f8b7f91e4c10a59dd43dcb2 /llvm/test | |
| parent | 2f1328b35b9927a5b4c58c8f041c400d17ebd42d (diff) | |
| download | bcm5719-llvm-a8ceb7a8012faf60cfe23b95193c1dfb9bbe9942.tar.gz bcm5719-llvm-a8ceb7a8012faf60cfe23b95193c1dfb9bbe9942.zip | |
[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 'llvm/test')
0 files changed, 0 insertions, 0 deletions

