[clang-tools-extra] r353413 - [clangd] Use Dex for dynamic index by default.

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 7 07:34:37 PST 2019


Author: ioeric
Date: Thu Feb  7 07:34:37 2019
New Revision: 353413

URL: http://llvm.org/viewvc/llvm-project?rev=353413&view=rev
Log:
[clangd] Use Dex for dynamic index by default.

Summary:
Memory usage for a sample TU:
  Without Dex: 17.9M
  With    Dex: 24.4M

The memory increase is considerable but seems tolerable.

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

Tags: #clang

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

Modified:
    clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp

Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp?rev=353413&r1=353412&r2=353413&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Thu Feb  7 07:34:37 2019
@@ -31,7 +31,7 @@ namespace clangd {
 static llvm::cl::opt<bool>
     UseDex("use-dex-index",
            llvm::cl::desc("Use experimental Dex dynamic index."),
-           llvm::cl::init(false), llvm::cl::Hidden);
+           llvm::cl::init(true), llvm::cl::Hidden);
 
 static llvm::cl::opt<Path> CompileCommandsDir(
     "compile-commands-dir",




More information about the cfe-commits mailing list