# Installing gems extremely slow?

**URL:** <https://www.ruby-forum.com/t/installing-gems-extremely-slow/219366>\
**Category:** IronRuby\
**Created:** [April 30, 2012, 10:11pm UTC](https://www.ruby-forum.com/t/installing-gems-extremely-slow/219366 "2012-04-30T22:11:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [April 30, 2012, 10:11pm UTC](https://www.ruby-forum.com/t/installing-gems-extremely-slow/219366/1 "2012-04-30T22:11:33Z")

</div>

Hi!

Is it just me, or is installing gems with IronRuby extremely slow? (at  
least compared to other Ruby platforms, like JRuby)

It seems to pretty much halt here:

C:\Work\git\rayak\examples\sinatra\>igem install --verbose sinatra  
GET [http://rubygems.org/latest\_specs.4.8.gz](http://rubygems.org/latest_specs.4.8.gz)  
302 Moved Temporarily  
GET [http://production.s3.rubygems.org/latest\_specs.4.8.gz](http://production.s3.rubygems.org/latest_specs.4.8.gz)  
200 OK  
GET [http://rubygems.org/specs.4.8.gz](http://rubygems.org/specs.4.8.gz)  
302 Moved Temporarily  
GET [http://production.s3.rubygems.org/specs.4.8.gz](http://production.s3.rubygems.org/specs.4.8.gz)  
200 OK

After quite some time, it proceeded and went on with the install as  
expected.

With JRuby 1.6.7 it looks like this. Very similar as with the above, but  
a  
_lot_ faster. Is there a significant performance bottleneck with the  
current IronRuby, or is it caused by some form of timeout or similar?

C:\Work\git\rayak\examples\sinatra\>gem install --verbose sinatra  
GET [http://rubygems.org/latest\_specs.4.8.gz](http://rubygems.org/latest_specs.4.8.gz)  
302 Moved Temporarily  
GET [http://production.s3.rubygems.org/latest\_specs.4.8.gz](http://production.s3.rubygems.org/latest_specs.4.8.gz)  
200 OK  
GET [http://rubygems.org/specs.4.8.gz](http://rubygems.org/specs.4.8.gz)  
302 Moved Temporarily  
GET [http://production.s3.rubygems.org/specs.4.8.gz](http://production.s3.rubygems.org/specs.4.8.gz)  
200 OK  
Installing gem sinatra-1.3.2  
Downloading gem sinatra-1.3.2.gem  
GET [http://rubygems.org/gems/sinatra-1.3.2.gem](http://rubygems.org/gems/sinatra-1.3.2.gem)  
302 Moved Temporarily  
GET [http://production.cf.rubygems.org/gems/sinatra-1.3.2.gem](http://production.cf.rubygems.org/gems/sinatra-1.3.2.gem)  
Fetching: sinatra-1.3.2.gem (100%)  
200 OK  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/.yardopts  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/AUTHORS  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/CHANGES  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/Gemfile  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/LICENSE  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.de.rdoc  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.es.rdoc  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.fr.rdoc  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.hu.rdoc  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.jp.rdoc  
[snip]

Best regards,  
Per

---

<div class="post-metadata">

**Author:** ![Per\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@Per\_L](https://www.ruby-forum.com/u/Per_L)\
**Post date:** [April 30, 2012, 10:19pm UTC](https://www.ruby-forum.com/t/installing-gems-extremely-slow/219366/2 "2012-04-30T22:19:02Z")

</div>

Hehe, that was a prompt reply. 🙂

Generating the rdoc is taking some time yes, but this was actually  
before  
it even managed to start downloading the .gem file. It’s sitting and  
generating up the rdocs right now as we’re speaking…

What is your general perception of IronRuby, performance-wise?  
Comparable  
to other platforms or lagging slightly behind?

Best regards,  
Per

---

<div class="post-metadata">

**Author:** ![Per\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@Per\_L](https://www.ruby-forum.com/u/Per_L)\
**Post date:** [April 30, 2012, 10:15pm UTC](https://www.ruby-forum.com/t/installing-gems-extremely-slow/219366/3 "2012-04-30T22:15:18Z")

</div>

Try running with the --no-ri and --no-rdoc flags, I suspect generating  
documentation is what is taking the time.

~Jimmy

On Apr 30, 2012, at 4:10 PM, Per L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

Hi!

Is it just me, or is installing gems with IronRuby extremely slow? (at  
least compared to other Ruby platforms, like JRuby)

It seems to pretty much halt here:

C:\Work\git\rayak\examples\sinatra\>igem install --verbose sinatra  
GET [http://rubygems.org/latest\_specs.4.8.gz](http://rubygems.org/latest_specs.4.8.gz)  
302 Moved Temporarily  
GET [http://production.s3.rubygems.org/latest\_specs.4.8.gz](http://production.s3.rubygems.org/latest_specs.4.8.gz)  
200 OK  
GET [http://rubygems.org/specs.4.8.gz](http://rubygems.org/specs.4.8.gz)  
302 Moved Temporarily  
GET [http://production.s3.rubygems.org/specs.4.8.gz](http://production.s3.rubygems.org/specs.4.8.gz)  
200 OK

After quite some time, it proceeded and went on with the install as  
expected.

With JRuby 1.6.7 it looks like this. Very similar as with the above, but  
a  
_lot_ faster. Is there a significant performance bottleneck with the  
current IronRuby, or is it caused by some form of timeout or similar?

C:\Work\git\rayak\examples\sinatra\>gem install --verbose sinatra  
GET [http://rubygems.org/latest\_specs.4.8.gz](http://rubygems.org/latest_specs.4.8.gz)  
302 Moved Temporarily  
GET [http://production.s3.rubygems.org/latest\_specs.4.8.gz](http://production.s3.rubygems.org/latest_specs.4.8.gz)  
200 OK  
GET [http://rubygems.org/specs.4.8.gz](http://rubygems.org/specs.4.8.gz)  
302 Moved Temporarily  
GET [http://production.s3.rubygems.org/specs.4.8.gz](http://production.s3.rubygems.org/specs.4.8.gz)  
200 OK  
Installing gem sinatra-1.3.2  
Downloading gem sinatra-1.3.2.gem  
GET [http://rubygems.org/gems/sinatra-1.3.2.gem](http://rubygems.org/gems/sinatra-1.3.2.gem)  
302 Moved Temporarily  
GET [http://production.cf.rubygems.org/gems/sinatra-1.3.2.gem](http://production.cf.rubygems.org/gems/sinatra-1.3.2.gem)  
Fetching: sinatra-1.3.2.gem (100%)  
200 OK  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/.yardopts  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/AUTHORS  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/CHANGES  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/Gemfile  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/LICENSE  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.de.rdoc  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.es.rdoc  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.fr.rdoc  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.hu.rdoc  
c:/jruby-1.6.7/lib/ruby/gems/1.8/gems/sinatra-1.3.2/README.jp.rdoc  
[snip]

Best regards,  
Per

---

<div class="post-metadata">

**Author:** ![Per\_L](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@Per\_L](https://www.ruby-forum.com/u/Per_L)\
**Post date:** [May 1, 2012, 11:35pm UTC](https://www.ruby-forum.com/t/installing-gems-extremely-slow/219366/4 "2012-05-01T23:35:23Z")

</div>

Per,

I find it quite fast, and the .net integration fascinating.

Eduardo

Per L. wrote in post #1059008:

> Hehe, that was a prompt reply. 🙂
> 
> Generating the rdoc is taking some time yes, but this was actually  
> before  
> it even managed to start downloading the .gem file. It’s sitting and  
> generating up the rdocs right now as we’re speaking…
> 
> What is your general perception of IronRuby, performance-wise?  
> Comparable  
> to other platforms or lagging slightly behind?
> 
> Best regards,  
> Per
