[clangd] Build Dex index after loading all shards in BackgroundIndex.
authorHaojian Wu <hokein@google.com>
Thu, 14 Mar 2019 09:57:10 +0000 (09:57 +0000)
committerHaojian Wu <hokein@google.com>
Thu, 14 Mar 2019 09:57:10 +0000 (09:57 +0000)
commit7ce0d6cc338e305a99fedb3d86a7f3fa51d51b33
treee0bcbab0216a6ae86b7d475c6e0232d85d6ee441
parentd9c174648ed8219ad86a021bcccf149e860d3ef5
[clangd] Build Dex index after loading all shards in BackgroundIndex.

Summary:
Currently after loadding all shards, we use MemIndex which has poor query
performance, we should use Dex.

Reviewers: kadircet

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D59350

llvm-svn: 356126
clang-tools-extra/clangd/index/Background.cpp