Hi, I''m using windoze 7 and rails 3.0. Running my unit tests takes a very long time for the rails environment to load... somewhere around 20 seconds, maybe more. I have seen references to using faster_require... i have done the gem install for that, but have no clue what to do with it. Am I missing something as far as setting that up? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2010-Sep-12 03:04 UTC
Re: slow rails environment load for unit tests, etc on windows
what db are you using? On Sat, Sep 11, 2010 at 12:41 PM, E <elliot.gage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m using windoze 7 and rails 3.0. > Running my unit tests takes a very long time for the rails environment > to load... somewhere around 20 seconds, maybe more. > > I have seen references to using faster_require... i have done the gem > install for that, but have no clue what to do with it. Am I missing > something as far as setting that up? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
John Ivanoff
2010-Sep-12 12:45 UTC
Re: slow rails environment load for unit tests, etc on windows
On thing I ran into is at work my "home path" was pointing to a network drive and my gems were being saved there. My test took 10 minutes to run. I had the network admin change my "home path" to my C drive and I reinstalled my gems and my tests ran much faster. Like less than one minute. My test always run slower on windows than my Mac. Cheers. John Ivanoff On Sep 11, 10:04 pm, radhames brito <rbri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> what db are you using? > > > > On Sat, Sep 11, 2010 at 12:41 PM, E <elliot.g...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > I''m using windoze 7 and rails 3.0. > > Running my unit tests takes a very long time for the rails environment > > to load... somewhere around 20 seconds, maybe more. > > > I have seen references to using faster_require... i have done the gem > > install for that, but have no clue what to do with it. Am I missing > > something as far as setting that up? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscrib e@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I am using sqlite. re: faster_require, I am able to do a requires ''faster_require'' from a ruby console, but cannot do so in rails console without an error. I have tried placing an entry in the gemfile and gemfile.lock files. On Sep 11, 8:04 pm, radhames brito <rbri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> what db are you using? > > On Sat, Sep 11, 2010 at 12:41 PM, E <elliot.g...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > > > I''m using windoze 7 and rails 3.0. > > Running my unit tests takes a very long time for the rails environment > > to load... somewhere around 20 seconds, maybe more. > > > I have seen references to using faster_require... i have done the gem > > install for that, but have no clue what to do with it. Am I missing > > something as far as setting that up? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Here''s the behavior I am getting now.... So, I add entries in gemfile and gemfile.lock I place a require ''faster_require'' in the boot.rb file. run gem install then I can run rake test:units. The strange thing is that I can only do a rake test:units one time... or instead do a rails console one time.... the second time I try running a rails console (without any changes) the console or tests fail to load, barfing out a rather long error string. I do another gem install faster_require.... and can run console or test again... just one time. Ideas? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2010-Sep-12 19:14 UTC
Re: Re: slow rails environment load for unit tests, etc on windows
are you sending mail in your app?? On Sun, Sep 12, 2010 at 12:57 PM, E <elliot.gage-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Here''s the behavior I am getting now.... > So, I add entries in gemfile and gemfile.lock > I place a require ''faster_require'' in the boot.rb file. > > run gem install > then I can run rake test:units. The strange thing is that I can only > do a rake test:units one time... or instead do a rails console one > time.... > the second time I try running a rails console (without any changes) > the console or tests fail to load, barfing out a rather long error > string. > I do another gem install faster_require.... and can run console or > test again... just one time. > > Ideas? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Agoofin
2010-Sep-12 22:28 UTC
Re: slow rails environment load for unit tests, etc on windows
Windows will always be slow with the stock rails app. Windows will load the rails environment every time which takes about 20 secs on my vista box. I''ve recently looked into this after taking several minutes to debug some tests. One of the possible solutions is to use to RSpec. I''m no expert on it as I couldn''t install it on ruby 1.8.7 (window - got to love it). But supposedly RSpec has a server that loads the environment only once. On Sep 12, 3:14 pm, radhames brito <rbri...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> are you sending mail in your app?? > > On Sun, Sep 12, 2010 at 12:57 PM, E <elliot.g...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Here''s the behavior I am getting now.... > > So, I add entries in gemfile and gemfile.lock > > I place a require ''faster_require'' in the boot.rb file. > > > run gem install > > then I can run rake test:units. The strange thing is that I can only > > do a rake test:units one time... or instead do a rails console one > > time.... > > the second time I try running a rails console (without any changes) > > the console or tests fail to load, barfing out a rather long error > > string. > > I do another gem install faster_require.... and can run console or > > test again... just one time. > > > Ideas? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > > . > > For more options, visit this group at > >http://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.