[PATCH] D51279: [clangd] Implement findOccurrences interface in dynamic index.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 26 22:35:28 PDT 2018


hokein added a comment.

Some numbers of memory usage from running this on my machine:

| File             | Preamble AST | Main AST                                 |
| SemaDecl.cpp     | 14.5MB       | 108.1KB (symbols) + 16.5KB (occurrences) |
| CodeComplete.cpp | 15.4MB       | 53.9KB (symbols) + 7.3KB (occurrences)   |
|

The memory usage of `occurrences` is relatively small, I think it is fine to enable it by default.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D51279





More information about the cfe-commits mailing list