[all-commits] [llvm/llvm-project] 3680cb: [clangd] ignore parallelism level for quick tasks

Quentin Chateau via All-commits all-commits at lists.llvm.org
Mon Jan 25 14:08:52 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3680cb99a77090b46e66fd1d4b5472f0546c978f
      https://github.com/llvm/llvm-project/commit/3680cb99a77090b46e66fd1d4b5472f0546c978f
  Author: Quentin Chateau <quentin.chateau at gmail.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M clang-tools-extra/clangd/ClangdServer.cpp
    M clang-tools-extra/clangd/TUScheduler.cpp
    M clang-tools-extra/clangd/TUScheduler.h

  Log Message:
  -----------
  [clangd] ignore parallelism level for quick tasks

This allows quick tasks without dependencies that
need to run fast to run ASAP. This is mostly useful
for code formatting.

----------------------------

This fixes something that's been annoying me:
- Open your IDE workspace and its 20 open files
- Clangd spends 5 minutes parsing it all
- In the meantime you start to work
- Save a file, trigger format-on-save, which hangs because clangd is busy
- You're stuck waiting until clangd is done parsing your files before the formatting and save takes place

Reviewed By: sammccall

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




More information about the All-commits mailing list