Are you using rvm? Check to make sure your 'rails' script is using the correct rvm rails version. Mine wasn't, and I needed to change line 1 to:
#!/usr/bin/env ruby That fixed a slow start-up problem I was having, which may or may not be related. M On 2/06/2010, at 1:11 PM, nahum wrote: > so anyway. doing a 'bundle lock' doesn't seem to have fixed things > for me. I've googled and found others complaining about ~30 second > startup times and dev mode being just really really slow in general > with rails3 + 1.9.x No fixes though, just people complaining. > > It wasn't always like this, only recently did it suddenly start > happening so I'm thinking I may have updated a gem or something and > that's caused my problems. Still looking into it... > > I guess that's what you get for living on the edge :-) > > --nahum > > On May 26, 12:46 pm, nahum <[email protected]> wrote: >> yeah, that's the one. doesn't look to have been updated since Nov >> '08. >> >> --nahum >> >> On May 26, 12:23 pm, Shane Mingins <[email protected]> wrote: >> >> >> >>> You mean the one you posted a while back? >> >>> This speeds up for dev (and possibly test) environment by being >> >>>> clever. >> >>>> http://blog.pastie.org/2008/11/rails-dev-mode-performance-plugin.html >> >>>> Nahum. >> >>> On Wed, May 26, 2010 at 9:47 AM, nahum <[email protected]> wrote: >>>> It has made a difference, and Jeremy's comment is what I would guess >>>> too without looking at the code. Given the whole 'convention over >>>> configuration' thing I would expect that by default bundler would >>>> cache gems and not reload them on each request because not everyone is >>>> a gem developer. >> >>>> It's still pretty slow on my laptop in dev mode - if I turn on class >>>> caching it ramps up massively, as you'd expect. >> >>>> A while ago someone posted a link to a plugin which speeds up dev mode >>>> by only reloading files/class/controllers/views/etc if the underlying >>>> file changed. It had some problems but was a fantastic concept. I >>>> can't seem to re-find it, does anyone have a link to it? Anyone using >>>> it? >> >>>> --nahum >> >>>> On May 24, 10:45 am, Jeremy Olliver <[email protected]> wrote: >>>>> I'd expect it's something along the lines of reloading the gems each >>> request >>>>> if the bundle isn't locked. Similar to how classes (models, controllers >>> etc) >>>>> aren't cached and are reloaded between each request in dev mode. >> >>>>> On 24 May 2010 09:59, Richard Hulse <[email protected]> wrote: >> >>>>>> Why would this make a difference? (Just as a matter of interest, and >>>>>> too lazy to go read the code). >> >>>>>> On Mon, May 24, 2010 at 9:11 AM, Eaden McKee <[email protected]> wrote: >>>>>>> Hi there, >> >>>>>>>> It's probably my configuration, but just wondering if anyone else >>>>>>>> using Rails3 + Postgres is finding it incredibly slow in dev mode. >>>>>>>> It's fast in production though. :-) >> >>>>>>> Are you locking the bundle? This speeds things up heaps. >> >>>>>>> Best Regards >>>>>>> Eaden McKee >> >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>> Groups >>>>>> "WellRailed" group. >>>>>>> To post to this group, send email to [email protected]. >>>>>>> To unsubscribe from this group, send email to >>>>>> [email protected]<wellrailed%2bunsubscr...@googlegrou >>>>>> ps.com> >> >>> <wellrailed%2bunsubscr...@googlegrou ps.com>>> > . >>>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/wellrailed?hl=en. >> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>> Groups >>>>>> "WellRailed" group. >>>>>> To post to this group, send email to [email protected]. >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected]<wellrailed%2bunsubscr...@googlegrou >>>>>> ps.com> >> >>> <wellrailed%2bunsubscr...@googlegrou ps.com>>> > . >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/wellrailed?hl=en. >> >>>>> -- >>>>> Jeremy Olliver >>>>> Developer >>>>> Heaps! >>>>> More out of life >> >>>>> -- >>>>> You received this message because you are subscribed to the Google Groups >>> "WellRailed" group. >>>>> To post to this group, send email to [email protected]. >>>>> To unsubscribe from this group, send email to >> >>> [email protected]<wellrailed%2bunsubscr...@googlegrou >>> ps.com> >>> .>> For more options, visit this group athttp:// >> >>> groups.google.com/group/wellrailed?hl=en. >> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>> "WellRailed" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >> >>> [email protected]<wellrailed%2bunsubscr...@googlegrou >>> ps.com> >>> .> For more options, visit this group at >> >>> http://groups.google.com/group/wellrailed?hl=en. >> >>> -- >>> Shane Mingins > > -- > You received this message because you are subscribed to the Google Groups > "WellRailed" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/wellrailed?hl=en. > -- You received this message because you are subscribed to the Google Groups "WellRailed" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/wellrailed?hl=en.
