CombatExtended-Continued / CombatExtended

Combat Extended mod for RimWorld
354 stars 245 forks source link

Updated BuildCompat.py #3199

Open Akilak11 opened 2 weeks ago

Akilak11 commented 2 weeks ago

added:

  1. Asynchronous execution: Use asyncio.create_subprocess_exec to start processes and wait for them to complete asynchronously.
  2. File reading optimization: Reading a file line by line inside an asynchronous function.
  3. Asynchronous task management: Use asyncio.gather to execute commands in parallel if the -j flag is enabled. This approach allows multiple processes to run in parallel, effectively managing their termination, which should improve script performance.

Additions

Describe new functionality added by your code, e.g.

Changes

Describe adjustments to existing features made in this merge, e.g.

References

Links to the associated issues or other related pull requests, e.g.

Reasoning

Why did you choose to implement things this way, e.g.

Alternatives

Describe alternative implementations you have considered, e.g.

Testing

Check tests you have performed:

github-actions[bot] commented 2 weeks ago

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-9616442798.zip