Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Speed up building ruby.. #2

Merged
merged 1 commit into from

3 participants

@Flamefork

.. by 30..40%.

Not sure if this options work across ruby implementations other than MRI & YARV, still I doubt anyone would run chef this way.

@mugwump

+1 - the ruby-build is terribly slow, it even looks like it's hanging sometimes: I'm not sure that the optimisation will fix that, but if anyone has an idea why it should take more than half an hour to build ruby I'd be grateful...

@Flamefork

@mugwump ruby-build is slow just cause compiling ruby takes time. As of my experience, more than half an hour is the time to compile ruby only on very slow machine, like AWS micro instance (I actually use such instances for few projects). And generating rdocs take about 40% of total build time, so speed-up is real :)

@mugwump

it's not only speedup I' afraid: Even installing rake with rdoc chokes on the microinstances. Maybe it's not a problem on bigger machines, but a switch would definitely be very useful.

@iain iain merged commit fe5eb08 into iain:master
@iain
Owner

sorry, completely missed this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 30, 2012
  1. @Flamefork

    Speedup building ruby

    Flamefork authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/roundsman/capistrano.rb
View
2  lib/roundsman/capistrano.rb
@@ -104,7 +104,7 @@ def ensure_roundsman_working_dir
git clone -q https://github.com/sstephenson/ruby-build.git
cd ruby-build
./install.sh
- ruby-build #{fetch(:ruby_version)} #{fetch(:ruby_install_dir)}
+ CONFIGURE_OPTS='--disable-install-rdoc' ruby-build #{fetch(:ruby_version)} #{fetch(:ruby_install_dir)}
}
end
Something went wrong with that request. Please try again.