[PATCH] D55770: [clangd] BackgroundIndex rebuilds symbol index periodically.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 17 08:21:18 PST 2018


ioeric created this revision.
ioeric added reviewers: ilya-biryukov, kadircet.
Herald added subscribers: cfe-commits, jfb, arphaman, jkorous, MaskRay.

Currently, background index rebuilds symbol index on every indexed file,
which can be inefficient. This patch makes it only rebuild symbol index periodically.
As the rebuild no longer happens too often, we could also build more efficient
dex index.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D55770

Files:
  clangd/ClangdServer.cpp
  clangd/ClangdServer.h
  clangd/index/Background.cpp
  clangd/index/Background.h
  clangd/tool/ClangdMain.cpp
  test/clangd/background-index.test
  unittests/clangd/BackgroundIndexTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55770.178471.patch
Type: text/x-patch
Size: 10875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181217/0ed31560/attachment-0001.bin>


More information about the cfe-commits mailing list