llvm-project/clang-tools-extra/clangd/support
Sam McCall c468635b7d [clangd] Speed up a slow sleeping testcase.
This testcase runs slowly due to 3.2s of sleeps = 2 + 1 + 0.2s.
After this patch it has 0.55s only.

Reduced by:
 - observed that the last test was bogus: we were sleeping until the queue was
   idle, effectively just a second copy of the first test. This avoids 1s sleep.
 - when waiting for debounce, sleep only until test passes, not for enough
   time to be safe (in practice was 2x debounce time, now 1x debounce time)
 - scaling delays down by a factor of 2 (note: factor of 10 caused bot failures)

Differential Revision: https://reviews.llvm.org/D125103
2022-05-06 20:12:17 +02:00
..
CMakeLists.txt [clangd] Print current request context along with the stack trace 2021-10-26 00:58:09 +02:00
Cancellation.cpp
Cancellation.h
Context.cpp
Context.h
FileCache.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
FileCache.h [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
Function.h
Logger.cpp
Logger.h [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
Markup.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
Markup.h
MemoryTree.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
MemoryTree.h [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
Path.cpp [clang-tools-extra] Rename StringRef _lower() method calls to _insensitive() 2021-06-25 00:22:01 +03:00
Path.h
Shutdown.cpp
Shutdown.h [clangd][NFC] includes missing headers 2022-02-15 17:44:47 +00:00
ThreadCrashReporter.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
ThreadCrashReporter.h [clangd] Print current request context along with the stack trace 2021-10-26 00:58:09 +02:00
Threading.cpp [clangd] Speed up a slow sleeping testcase. 2022-05-06 20:12:17 +02:00
Threading.h [clangd] Speed up a slow sleeping testcase. 2022-05-06 20:12:17 +02:00
ThreadsafeFS.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
ThreadsafeFS.h [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
Trace.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
Trace.h