diff options
author | Paul Emmerich <tandanu@deadlybossmods.com> | 2024-04-27 14:51:12 +0200 |
---|---|---|
committer | Paul Emmerich <tandanu@deadlybossmods.com> | 2024-04-27 14:51:12 +0200 |
commit | 38d83324671b4110614dbef30acef4a1543ee065 (patch) | |
tree | cc7a56089c88dde7d3a9fac45714e84b167538de /locale/zh-cn | |
parent | 6b5e19597d88a219aac73cbccd6f88a4213e07aa (diff) | |
download | lua-language-server-38d83324671b4110614dbef30acef4a1543ee065.zip |
Add multi-process support to --check.
Set the parameter --num_threads to the desired number of worker tasks to
potentially speed up --check.
This works by spawning multiple sub-proccesses that each run the desired
diagnostics on a subset of the workspace. Each process will still load
and compile the entire workspace, so there are diminishing returns and
memory usage increases linearly with the number of threads.
Overall this can reduce the runtime by about ~50% for my projects,
example results:
Workspace 1, dominated by a few large/complex files
1 thread: 49.7 seconds
2 threads: 31.8 seconds
4 threads: 23.6 seconds
8 threads: 24.4 seconds
Workspace 2, large number of small-ish files
1 thread: 96.0 seconds
2 threads: 76.5 seconds
4 threads: 49.5 seconds
8 threads: 38.1 seconds
Diffstat (limited to 'locale/zh-cn')
-rw-r--r-- | locale/zh-cn/script.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index c16a764f..a4d20628 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/script.lua @@ -650,6 +650,8 @@ CLI_CHECK_PROGRESS = -- TODO: need translate! 'Found {} problems in {} files' CLI_CHECK_RESULTS = '诊断完成,共有 {} 个问题,请查看 {}' +CLI_CHECK_MULTIPLE_WORKERS = -- TODO: need translate! +'Starting {} worker tasks, progress output will be disabled. This may take a few minutes.' CLI_DOC_INITING = '加载文档 ...' CLI_DOC_DONE = |