Closed bloodnighttw closed 5 months ago
I used to use Python multiprocessing for tasks like this. My only concern with this codebase was that some functions rely on global variables, which make it hard to parallelize
I used to use Python multiprocessing for tasks like this. My only concern with this codebase was that some function rely on global variables, which make it hard to parallelize
I think I don't touch any global variable, but I will pay attention to it.
After a day of debugging, I decided not to commit the code that optimize the forge update code. Because it cause so many bug, and the forge/neoforge update code is a little bit complex to me to make it parallelize,sorry about that.
In my pc, my branch script output is same as the original script. (I also found that the original script can't have same output with PrismLauncher/meta-launcher in my PC,I don't know why.)
The code is ready to review and test,thx.
Recently I want to use this script for my personal project, then I found that if I don't clone meta-upstream to
upstream/
, it will take a lot of time to generate data when using./update.sh
.What I do
This is just an example.
I just turn
into
Comparison
Here is the time comparison about what the code what I change. (Left side is my code, Right side is the original code.)
Here is my test enviroment information:
#
Note
I have noticed some order change in launcher/net.fabricmc.intermediary/index.json,these also change sha in launcher/index.json. I just need to figure out what happened in these change.