Situation: Currently rails 2.3.8 and 3.0 all force a full loading of full rubygems. Unfortunately this adds an extra 10MB of RSS to the application, making servers slower because of GC. Typically one wants the convenience of full rubygems, but not always. Suggestion: only lazy load full rubygems, like if someone does config.gem ''gem_name'' # load full rubygems at this point This would allow users to avoid loading full rubygems where desired, which currently isn''t possible [1]. Thoughts? -r [1] http://www.ruby-forum.com/topic/212463#new -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On 6 July 2010 04:02, rogerdpack <rogerpack2005@gmail.com> wrote:> Situation: > > Currently rails 2.3.8 and 3.0 all force a full loading of full > rubygems. >Could you explain how? -- Ryan Bigg / Radar -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On 5 July 2010 23:21, Ryan Bigg <radarlistener@gmail.com> wrote:> > > On 6 July 2010 04:02, rogerdpack <rogerpack2005@gmail.com> wrote: > >> Situation: >> >> Currently rails 2.3.8 and 3.0 all force a full loading of full >> rubygems. >> > > Could you explain how? > >I am not really sure about this. But, Bundler can be used in this situation, isn''t it? Anuj> -- > Ryan Bigg / Radar > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- Anuj DUTTA -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
> > Currently rails 2.3.8 and 3.0 all force a full loading of full > > rubygems. > > Could you explain how?If I remember correctly, bundler does something like Gem::Dependency # force loading of full rubygems Though I should look more closely at that one, since I was also under the assumption that you could use "just" builder and not full rubygems, so I''m not sure why it does that, or if it''s currently necessary. 2.3.8 requires a full load for doing its config.gem setup. -r -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Bundler does not currently support a mode of operation without Rubygems, but we plan to add such a mode in 1.1. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Tue, Jul 6, 2010 at 11:48 AM, rogerdpack <rogerdpack@gmail.com> wrote:> > > Currently rails 2.3.8 and 3.0 all force a full loading of full > > > rubygems. > > > > Could you explain how? > > If I remember correctly, bundler does something like > > Gem::Dependency # force loading of full rubygems > > Though I should look more closely at that one, since I was also under > the assumption that you could use "just" builder and not full > rubygems, so I''m not sure why it does that, or if it''s currently > necessary. > > 2.3.8 requires a full load for doing its config.gem setup. > > -r > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.