DEV Community

Cover image for Speed up bundle install with this one trick

Speed up bundle install with this one trick

Phil Nash on June 12, 2017

Did you know bundler can download and install gems in parallel? That's right, using the --jobs option for bundle install means you can set the num...
Collapse
 
andy profile image
Andy Zhao (he/him)

Super cool! Ran it on a not-too-big project and got slightly faster results. Thanks for the tip! I would just add that when you need to run regular ol' bundle install again, add bundle install --system so the gem path goes back to the default path. Had a funny situation with that until I read the Bundler docs.

Collapse
 
philnash profile image
Phil Nash

Oh, apologies! I guess that's just from my test script that set the path to install to, messing with your existing project. Thanks for sharing how you fixed that.

Collapse
 
maestromac profile image
Mac Siri

Never knew about this --jobs thing. Thanks for sharing!

Collapse
 
philnash profile image
Phil Nash

No worries! Hope it speeds things up for you!