aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2023-06-07 11:52:45 +0200
committerPavel Labath <pavel@labath.sk>2023-06-16 08:28:29 +0200
commitc30853460da7446f92bc1e516f9cbe2c5df6e136 (patch)
tree7ceef96572cfdb97653b8e0154550c68b6129f6e /clang/lib/Sema/SemaModule.cpp
parent11ebe3d906558d93a607347de472e7718127f409 (diff)
downloadllvm-c30853460da7446f92bc1e516f9cbe2c5df6e136.zip
llvm-c30853460da7446f92bc1e516f9cbe2c5df6e136.tar.gz
llvm-c30853460da7446f92bc1e516f9cbe2c5df6e136.tar.bz2
[lldb] Rate limit progress reports -- different approach [WIP-ish]
Have the Progress class spawn a thread to periodically send progress reports. The reporting period could be made configurable, but for now I've hardcoded it to 100ms. (This is the main WIP part) It could be argued that creating a thread for progress reporting adds overhead, but I would counter that by saying "If the task is so fast that creating a thread noticably slows it down, then it really doesn't need progress reporting". For me, this speeds up DWARF indexing by about 1.5% (which is only slightly above the error bars), but I expect it will have a much bigger impact in situations where printing a single progress update takes a nontrivial amount of time. Differential Revision: https://reviews.llvm.org/D152364
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions