28 Feb '15, 12pm

Speed up `bundle install` by installing your gems in parallel via @thoughtbot

Do you realize how much time you’ve spent running bundle install ? ] No more sword fighting! Bundler 1.4.0 adds support for parallel installation . You can pass in --jobs SIZE as a parameter to bundle config 1 . I recommend setting the size to one less the number of CPU cores on your machine2 . But Prem, how much time could I save Let’s benchmark this! I’m going to run bundle install on a freshly-created Rails app. Before: $ rvm gemset use j1 --create Using ruby-2.0.0-p247 with gemset j1 $ time bundle install # ... snip ... bundle install 5.75s user 1.76s system 24% cpu 30.679 total After: $ rvm gemset use j8 --create Using ruby-2.0.0-p247 with gemset j8 $ bundle config --global --jobs 8 $ time bundle install # ... snip ... bundle install 7.48s user 2.59s system 86% cpu 11.681 total That’s about 19 seconds faster (~61.90% improvement) over regular bundle install !!! That’s...

Full article: https://robots.thoughtbot.com/parallel-gem-installing-usi...

Tweets

ブログ書いた。PHPでフレームワークを使ってプロジェクトを開始するのと同程度のことはできるよう...

mawatari.jp 26 Feb '15, 11pm

bundle install --path vendor/bundle Fetching gem metadata from https://rubygems.org/........... Fetching version metadata ...

New Bundler Yo! bundler (1.8.4) #bundler

rubygems.org 05 Mar '15, 11pm

Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably

Version Both Your Github Repo and Gem #ruby #ru...

rubyflow.com 01 Mar '15, 9am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...