This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Enable completion index by default, limit results to 100.
ClosedPublic

Authored by sammccall on Jan 29 2018, 3:50 PM.

Details

Summary

This should speed up global code completion by avoiding deserializing
preamble declarations to look up names. The tradeoff is memory usage.
Currently the index is fairly naive and may not be much faster, but there's lots
of performance headroom.

These two changes go together because results from the index get copied a couple
of times, so we should avoid it for huge sets.

Also the flag should be -completion-limit, rather than -limit-completion.

Diff Detail

Repository
rL LLVM

Event Timeline

sammccall created this revision.Jan 29 2018, 3:50 PM
This revision is now accepted and ready to land.Jan 29 2018, 10:28 PM
ioeric accepted this revision.Jan 30 2018, 1:16 AM

Woohoo!

This revision was automatically updated to reflect the committed changes.