Skip to content

Parallel modloading#5852

Open
ZZZank wants to merge 2 commits intoHMCL-dev:mainfrom
ZZZank:parallel-modloading
Open

Parallel modloading#5852
ZZZank wants to merge 2 commits intoHMCL-dev:mainfrom
ZZZank:parallel-modloading

Conversation

@ZZZank
Copy link
Contributor

@ZZZank ZZZank commented Mar 25, 2026

ModMenager.addModInfo(...)放到了CompletableFuture中,从而尽可能规避了其中IO操作导致的等待。

默认情况下一次性最多10并行,因为Schedulers.io()在不支持虚拟线程的版本下如果收到大量任务(比如加载大型整合包的mod列表),会创造大量线程。

这个PR能使得mod列表加载时间从10秒缩减到大约4秒,如果再加上kala-compress方面的优化,应该还能更快

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant