From: Eric Hodel Date: 2007-10-13T19:31:24+09:00 Subject: Re: Import gem to Ruby 1.9 On Oct 13, 2007, at 03:16 , murphy wrote: >>> (b) silently require 'rubygems' in initialization process. >>> rubygems >>> requires a lot of other libraries, so that memory consumption >>> might be an issue. > don't forget performance (interpreter startup time)...on my machine, > -rubygems (v0.9.4) makes Ruby starting nearly 10x slower. > > but I haven't tested 0.9.4.5. The following times a representative of the steady state after the OS has cached everything. 0.9.4.5 starts up twice as fast as 0.9.4. $ time ruby -v -rubygems -e 'p Gem::RubyGemsVersion' ruby 1.8.6 (2007-09-23 patchlevel 5000) [powerpc-darwin8.10.0] "0.9.4.5" real 0m0.136s user 0m0.068s sys 0m0.025s $ time ruby19 -v -rubygems -e 'p Gem::RubyGemsVersion' ruby 1.9.0 (2007-10-13 patchlevel 0) [powerpc-darwin8.10.0] "0.9.4.5" real 0m0.181s user 0m0.110s sys 0m0.030s $ time ruby -v -Ilib -rubygems -e 'p Gem::RubyGemsVersion' ruby 1.8.6 (2007-09-23 patchlevel 5000) [powerpc-darwin8.10.0] "0.9.4" real 0m0.280s user 0m0.184s sys 0m0.050s -- Poor workers blame their tools. Good workers build better tools. The best workers get their tools to do the work for them. -- Syndicate Wars