summaryrefslogtreecommitdiff
path: root/script/provider/completion.lua
diff options
context:
space:
mode:
authorPaul Emmerich <tandanu@deadlybossmods.com>2024-05-24 16:04:27 +0200
committerPaul Emmerich <tandanu@deadlybossmods.com>2024-05-24 22:22:16 +0200
commit439c1e79611c240ea977936edc8f1fcadcbf34da (patch)
tree58b93b6f03f1af6d251b6b14abb888b058e990d2 /script/provider/completion.lua
parent87abc4245f2a24e1cc35851b6464af9588934286 (diff)
downloadlua-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