diff options
author | Eric Liu <ioeric@google.com> | 2018-08-24 11:23:56 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-08-24 11:23:56 +0000 |
commit | 25d74e9594f43c0436101521623753d657456a6c (patch) | |
tree | 436cd4001f18bb884ee7ac2b07ee093430901c03 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | f81b08001a4423e7a158b9463866abadccde81a5 (diff) | |
download | llvm-25d74e9594f43c0436101521623753d657456a6c.zip llvm-25d74e9594f43c0436101521623753d657456a6c.tar.gz llvm-25d74e9594f43c0436101521623753d657456a6c.tar.bz2 |
[clangd] Speculative code completion index request before Sema is run.
Summary:
For index-based code completion, send an asynchronous speculative index
request, based on the index request for the last code completion on the same
file and the filter text typed before the cursor, before sema code completion
is invoked. This can reduce the code completion latency (by roughly latency of
sema code completion) if the speculative request is the same as the one
generated for the ongoing code completion from sema. As a sequence of code
completions often have the same scopes and proximity paths etc, this should be
effective for a number of code completions.
Trace with speculative index request:{F6997544}
Reviewers: hokein, ilya-biryukov
Reviewed By: ilya-biryukov
Subscribers: javed.absar, jfb, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D50962
llvm-svn: 340604
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions