Possible fix for parallel x265 multilib build
After reading https://flameeyes.blog/2010/10/18/tell-tale-signs-that-your-makefile-is-brok... I tried to modify our multilib.sh script, and apparently just adding "-j" to make commands made them run nasm jobs on all cores (as defined in previous makefile) Try attached patch and see if it improves build times without breaking build
On Fri, Mar 20, 2026 at 10:40 AM Andrew Randrianasulu <[email protected]> wrote:
After reading
https://flameeyes.blog/2010/10/18/tell-tale-signs-that-your-makefile-is-brok...
I tried to modify our multilib.sh script, and apparently just adding "-j" to make commands made them run nasm jobs on all cores (as defined in previous makefile)
Try attached patch and see if it improves build times without breaking build
On Ubuntu 16.04 LTS with make 4.1 it was not working, so I added $(nproc) to all 3 make commands worked on 2-cpu VM, but I wonder if it will work ok on much bigger machines?
Checked into GIT - makes a HUGE difference on a 12 CPU Ryzen 7. I always had to disable-hidepth when building and now I do not. Tested on Debian 9.1 and Ubuntu 16 multicpu desktop as well as 2 laptops at Fedora 32 and Fedora 42 (both 12 cpu ryzen). On my normal laptop, compile time took 43 minutes without the mod and 21 minutes with the mod. Since I build the whole sheband several times a day sometimes, it really makes my life easier. Thanks to Andrew. Also, checked into GIT some minor text changes to include some spelling corrections. On Fri, Mar 20, 2026 at 2:51 PM Andrew Randrianasulu < [email protected]> wrote:
On Fri, Mar 20, 2026 at 10:40 AM Andrew Randrianasulu <[email protected]> wrote:
After reading
https://flameeyes.blog/2010/10/18/tell-tale-signs-that-your-makefile-is-brok...
I tried to modify our multilib.sh script, and apparently just adding "-j" to make commands made them run nasm jobs on all cores (as defined in previous makefile)
Try attached patch and see if it improves build times without breaking
build
On Ubuntu 16.04 LTS with make 4.1 it was not working, so I added $(nproc) to all 3 make commands
worked on 2-cpu VM, but I wonder if it will work ok on much bigger machines?
participants (2)
-
Andrew Randrianasulu -
Phyllis Smith