diff options
author | Sam McCall <sam.mccall@gmail.com> | 2020-02-03 13:01:03 +0100 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2020-02-04 12:28:20 +0100 |
commit | 92570718a86cc4c23108b596002114ab25857b14 (patch) | |
tree | 9e502ab61d7450b7e8b71442b6f0813699a817bc /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 7128aace600f29c81f735c3b1d3f5f51464c4630 (diff) | |
download | llvm-92570718a86cc4c23108b596002114ab25857b14.zip llvm-92570718a86cc4c23108b596002114ab25857b14.tar.gz llvm-92570718a86cc4c23108b596002114ab25857b14.tar.bz2 |
[clangd] Mechanism to make update debounce responsive to rebuild speed.
Summary:
Currently we delay AST rebuilds by 500ms after each edit, to wait for
further edits. This is a win if a rebuild takes 5s, and a loss if it
takes 50ms.
This patch sets debouncepolicy = clamp(min, ratio * rebuild_time, max).
However it sets min = max = 500ms so there's no policy change or actual
customizability - will do that in a separate patch.
See https://github.com/clangd/clangd/issues/275
Reviewers: hokein
Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D73873
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions