This would save us some memory and disk space:
- Dex usage (261 MB vs 266 MB)
- Disk (75 MB vs 76 MB)
It would save more when we index the main file symbol D55185.
Differential D56314
[clangd] Don't store completion info if the symbol is not used for code completion. hokein on Jan 4 2019, 5:16 AM. Authored by
Details This would save us some memory and disk space:
It would save more when we index the main file symbol D55185.
Diff Detail
Event TimelineComment Actions Might we want to keep some of this information for workspace/symbol? I mean, surely not "documentation", but perhaps "signature" and "return type"? For example, when cquery responds to workspace/symbol, it puts into SymbolInformation.name a "detailed name" that includes the return type and signature for functions, allowing clients to display these in their "Open Element" dropdown. This is in turn useful for e.g. selecting the correct one among multiple overloads of a function to jump to. Comment Actions @hokein, do you need reviewers for this? I'm happy to volunteer. There's nothing stopping us from reintroducing this information if we start doing the same. I don't foresee difficulties with this. It would be easier to figure out the bits we actually need when we implement this functionality. Comment Actions Thanks.
+1, we don't use the signature and return type in the workspace/symbol at the moment. We could revisit it when we actually need them.
Comment Actions LGTM
Comment Actions LGTM again :-) I bet the savings are less now that we're always storing the comments in the static index, so the numbers in the description might be outdated. |
NIT: Maybe change to only set when the symbol...? "Meaningful" might create confusion.