Installing gems extremely slow?


#1

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
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET 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
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET 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
302 Moved Temporarily
GET 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


#2

Hehe, that was a prompt reply. :slight_smile:

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


#3

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 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
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET 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
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET 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
302 Moved Temporarily
GET 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


#4

Per,

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

Eduardo

Per L. wrote in post #1059008:

Hehe, that was a prompt reply. :slight_smile:

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