[clangd] Enable async preambles by default
authorKadir Cetinkaya <kadircet@google.com>
Tue, 7 Jul 2020 10:30:58 +0000 (12:30 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 9 Jul 2020 08:57:45 +0000 (10:57 +0200)
Summary:
We've been testing this internally for a couple weeks now and it seems
to be stable enough. Let's flip the flag before branch cut to increase testing
coverage and have enough time to revert if need be.

Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

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

clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/TUScheduler.h

index faeec2e..ea82081 100644 (file)
@@ -100,7 +100,7 @@ public:
     bool StorePreamblesInMemory = true;
     /// Reuse even stale preambles, and rebuild them in the background.
     /// This improves latency at the cost of accuracy.
-    bool AsyncPreambleBuilds = false;
+    bool AsyncPreambleBuilds = true;
 
     /// If true, ClangdServer builds a dynamic in-memory index for symbols in
     /// opened files and uses the index to augment code completion results.
index f33470f..05c06da 100644 (file)
@@ -194,7 +194,7 @@ public:
 
     /// Whether to run PreamblePeer asynchronously.
     /// No-op if AsyncThreadsCount is 0.
-    bool AsyncPreambleBuilds = false;
+    bool AsyncPreambleBuilds = true;
 
     /// Used to create a context that wraps each single operation.
     /// Typically to inject per-file configuration.