3 ms·
The 'make' trick is cool. Used that a couple of times. I just kind of discovered that on my own. Then someone told me about xargs, so now that is my default. S
by rdtsc 13y ago
The 'make' trick is cool. Used that a couple of times. I just kind of discovered that on my own. Then someone told me about xargs, so now that is my default.
Sometimes by playing with the -j or xargs --max-procs you discover interesting bottlenecks. Remember spending time trying to speed up this script. Used the make trick, it still was not running fast enough, it turns out disk i/o was the bottleneck.
- voltagex_ 13y agoI don't know enough about make to explain, but sometimes -j will break the build. Some Debian packages are explicitly built without -j enabled.
- rdtsc 13y agoSometimes there are incorrectly specified dependencies between source files and things that depend on them. For example rules that are implicitly sequential in -j1 mode but if they are written as target: dep1 dep2 then dep1 and dep2 might be executed in parallel if -j>1 There are not many make expert (I am not one) so looking and figuring out the issue is sometimes tricky so often I see -j1 used always by default.