llvm-project/clang-tools-extra/clangd
Kadir Cetinkaya ee23633eab [clangd] Reduce number of threads used by BackgroundIndex to number of physical cores.
Summary:
clangd is using as many threads as logical cores for BackgroundIndex
by default. We observed that it increases latency of foreground tasks.

This patch aims to change that default to number of physical cores to get rid of
that extra latency.

Reviewers: ilya-biryukov

Reviewed By: ilya-biryukov

Subscribers: ioeric, MaskRay, jkorous, arphaman, cfe-commits

Tags: #clang

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

llvm-svn: 353422
2019-02-07 16:04:30 +00:00
..
benchmarks Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clients/clangd-vscode [clangd] Bump vscode-clangd v0.0.11 2019-02-06 15:29:54 +00:00
fuzzer [clangd] Use delimited style to make life easier for the fuzzer 2019-02-01 11:20:20 +00:00
index [clangd] Reduce number of threads used by BackgroundIndex to number of physical cores. 2019-02-07 16:04:30 +00:00
indexer Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
refactor [clangd] Format tweak's replacements. 2019-02-06 15:24:50 +00:00
tool [clangd] Use Dex for dynamic index by default. 2019-02-07 15:34:37 +00:00
xpc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AST.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AST.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [clangd] Lib to compute and represent selection under cursor. 2019-02-01 15:05:11 +00:00
Cancellation.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Cancellation.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangdLSPServer.cpp Remove trailing semicolon. NFCI. 2019-02-03 14:08:30 +00:00
ClangdLSPServer.h [clangd] Implement textDocument/declaration from LSP 3.14 2019-02-01 11:26:13 +00:00
ClangdServer.cpp [clangd] Format tweak's replacements. 2019-02-06 15:24:50 +00:00
ClangdServer.h [clangd] Implement textDocument/declaration from LSP 3.14 2019-02-01 11:26:13 +00:00
ClangdUnit.cpp [clangd] Suggest adding missing includes for typos (like include-fixer). 2019-02-07 09:23:22 +00:00
ClangdUnit.h [clangd] Enable include insertion for static index 2019-02-04 16:19:57 +00:00
CodeComplete.cpp [clangd] Add type boost to fuzzy find in Dex. 2019-02-06 15:36:23 +00:00
CodeComplete.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CodeCompletionStrings.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CodeCompletionStrings.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Compiler.cpp [clangd] NFC: Use buildCompilerInvocation in CodeComplete 2019-01-22 09:58:53 +00:00
Compiler.h [clangd] Format tweak's replacements. 2019-02-06 15:24:50 +00:00
Context.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Context.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Diagnostics.cpp [clangd] Append "(fix available)" to diagnostic message when fixes are present. 2019-01-31 16:09:25 +00:00
Diagnostics.h [clangd] Suggest adding missing includes for incomplete type diagnostics. 2019-01-28 14:01:55 +00:00
DraftStore.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DraftStore.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExpectedTypes.cpp [CodeComplete] [clangd] Fix crash on ValueDecl with a null type 2019-01-24 10:41:43 +00:00
ExpectedTypes.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FS.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FS.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FSProvider.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FSProvider.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Features.inc.in [clangd] XPC transport layer 2019-01-16 00:24:22 +00:00
FileDistance.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FileDistance.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FindSymbols.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FindSymbols.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Function.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FuzzyMatch.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FuzzyMatch.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
GlobalCompilationDatabase.cpp [clangd] Filter out plugin related flags and move all commandline manipulations into OverlayCDB. 2019-01-22 09:10:20 +00:00
GlobalCompilationDatabase.h [clangd] Filter out plugin related flags and move all commandline manipulations into OverlayCDB. 2019-01-22 09:10:20 +00:00
Headers.cpp [clangd] Suggest adding missing includes for incomplete type diagnostics. 2019-01-28 14:01:55 +00:00
Headers.h [clangd] Suggest adding missing includes for incomplete type diagnostics. 2019-01-28 14:01:55 +00:00
IncludeFixer.cpp [clangd] Suggest adding missing includes for typos (like include-fixer). 2019-02-07 09:23:22 +00:00
IncludeFixer.h [clangd] Suggest adding missing includes for typos (like include-fixer). 2019-02-07 09:23:22 +00:00
JSONTransport.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Logger.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Logger.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Path.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Protocol.cpp [clangd] Interfaces for writing code tweaks 2019-01-29 14:17:36 +00:00
Protocol.h [clangd] Interfaces for writing code tweaks 2019-01-29 14:17:36 +00:00
Quality.cpp [clangd] Penalize file-scope symbols in the ranking for non-completion queries 2019-02-01 13:07:37 +00:00
Quality.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RIFF.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RIFF.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Selection.cpp [clangd] Fix an assertion failure in Selection. 2019-02-07 16:00:44 +00:00
Selection.h [clangd] Lib to compute and represent selection under cursor. 2019-02-01 15:05:11 +00:00
SourceCode.cpp [clangd] Format tweak's replacements. 2019-02-06 15:24:50 +00:00
SourceCode.h [ELF] Format lines inadvertently indented by rCTE353380 2019-02-07 15:38:14 +00:00
TUScheduler.cpp [clangd] Enable include insertion for static index 2019-02-04 16:19:57 +00:00
TUScheduler.h [clangd] Enable include insertion for static index 2019-02-04 16:19:57 +00:00
Threading.cpp [clangd] Remove 'using namespace llvm' from .cpp files. NFC 2019-01-07 15:45:19 +00:00
Threading.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Trace.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Trace.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Transport.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
URI.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
URI.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
XRefs.cpp [clangd] Implement textDocument/declaration from LSP 3.14 2019-02-01 11:26:13 +00:00
XRefs.h [clangd] Implement textDocument/declaration from LSP 3.14 2019-02-01 11:26:13 +00:00