develar / 7zip-bin

7-Zip precompiled binaries
MIT License
117 stars 33 forks source link

Multi-threaded compression #16

Open fabiospampinato opened 2 years ago

fabiospampinato commented 2 years ago

According to Activity Monitor the 7za binary spawned by electron-builder stays at a constant 100% most of the time, so it sounds like multi-threading isn't really used, since I have 10 cores available.

Can compression with 7za be made faster? That's my main bottleneck in the build process.

mydevpeeps commented 5 months ago

@fabiospampinato I just did some testing with this and the change isn't in this module. The change needs to happen in app-builder-lib where it sets up the params to pass to 7z. I tested some mods there to hardcode -mmt=on and watched all 24 threads get crushed during a build.