This post originated from an RSS feed registered with Ruby Buzz
by Gregory Brown.
Original Post: Slow require of ruport unconvered
Feed Title: Ruby Reports Blog
Feed URL: http://www.cwinters.com/blog/index.rss
Feed Description: News and Updates regarding the Ruby Reports library and toolset.
[greg@bulbasaur ruport]$ time ruby -Ilib -e 'require "ruport"'
real 0m0.573s
user 0m0.524s
sys 0m0.040s
[greg@bulbasaur ruport]$ time ruby -rubygems -e 'require "ruport"'
real 0m2.807s
user 0m2.320s
sys 0m0.248s
Gems was auto-requiring all the deps even though we said 'no thank you sir' in the gemspec.
Well to be fair, fastercsv would have been loaded anyway in Ruport 0.4.5,
because it was required globally (with a rescue)
Still, that's not a big time hit. See on 0.4.5:
[greg@bulbasaur rel_0_4_5]$ time ruby -Ilib -e 'require "ruport"'
real 0m0.790s
user 0m0.696s
sys 0m0.084s