[PATCH] D73949: [clangd] Debounce rebuilds responsively to rebuild times.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 23 06:52:30 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG7d3f8b1e2dcd: [clangd] Debounce rebuilds responsively to rebuild times. (authored by sammccall).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73949/new/

https://reviews.llvm.org/D73949

Files:
  clang-tools-extra/clangd/ClangdServer.h


Index: clang-tools-extra/clangd/ClangdServer.h
===================================================================
--- clang-tools-extra/clangd/ClangdServer.h
+++ clang-tools-extra/clangd/ClangdServer.h
@@ -130,8 +130,11 @@
     llvm::Optional<std::string> ResourceDir = llvm::None;
 
     /// Time to wait after a new file version before computing diagnostics.
-    DebouncePolicy UpdateDebounce =
-        DebouncePolicy::fixed(std::chrono::milliseconds(500));
+    DebouncePolicy UpdateDebounce = DebouncePolicy{
+        /*Min=*/std::chrono::milliseconds(50),
+        /*Max=*/std::chrono::milliseconds(500),
+        /*RebuildRatio=*/1,
+    };
 
     bool SuggestMissingIncludes = false;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73949.246104.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200223/92b693d8/attachment.bin>


More information about the cfe-commits mailing list