Parallel gem installs
In our work as developers, we encounter situations where the software runs too slow.
We don’t want our productivity to decrease - as we dont’t want to enter into rabit holes which can delay us even further.
A clear and simple solution for you :
Bundler 1.4.0 adds support for parallel installation. You can pass in –jobs SIZE as a parameter to bundle config1. I recommend setting the size to one less the number of CPU cores on your machine.
Benchmark.
Before:
After:
Obtained a 62% improvement using 8 CPU cores
Awesome right ? To use this now we Just install a prerelease version of Bundler, and we’ll be good to go:
Then, configure Bundler to parallelize on your machine globally:
Tried to set the size to be equal to the number of your CPU cores. However, it turned out that setting the number to be N-1 will yield a better result.
The dreams of yesterday are the hopes of today and the reality of tomorrow. Science has not yet mastered prophecy. We predict too much for the next year and yet far too little for the next ten.