diff options
author | Paul Emmerich <tandanu@deadlybossmods.com> | 2024-05-24 16:04:27 +0200 |
---|---|---|
committer | Paul Emmerich <tandanu@deadlybossmods.com> | 2024-05-24 22:22:16 +0200 |
commit | 439c1e79611c240ea977936edc8f1fcadcbf34da (patch) | |
tree | 58b93b6f03f1af6d251b6b14abb888b058e990d2 /script/provider/completion.lua | |
parent | 87abc4245f2a24e1cc35851b6464af9588934286 (diff) | |
download | lua-language-server-439c1e79611c240ea977936edc8f1fcadcbf34da.zip |
Throttle calls to await.delay() in some diagnostics
These 5 diagnostics cause ~70% of all calls to await.delay() by
diagnostics which in turn is about ~20% of the total runtime of
diagnostics.
Out of these diagnostics only assign-type-mismatch commonly exceeds
runtimes of 100ms (worst observed in my dataset was 7 seconds) and
even then it still attempts to call await.delay() over 1500 times
per second, so throttling by a factor of 15 is still fine.
Diffstat (limited to 'script/provider/completion.lua')
0 files changed, 0 insertions, 0 deletions