That's in config/initializers/hobo.rb. It appears to cut average time for requests from 4sec to 2.5sec or so.
That's quite a bit better but still pretty slow. Ah well, I can live with it. Thanks! On Sat, Jan 10, 2009 at 12:43 PM, James Garlick <[email protected]> wrote: > > > On 10 Jan 2009, at 18:38, Scott Bronson wrote: >> >> They seem to be regenerated before each request in dev and once when >> your app starts up in production. I haven't actually read the code >> so I might be wrong here. >> >> I guess this contributes to how slow the dev environment is >> becoming... I really do like not having to bounce my app all the >> time but sometimes it takes 3-4 seconds to handle a request! Makes >> it fairly painful to navigate around my app. >> > > That's right, but you can turn off the dev mode behaviour by doing: > > Hobo::ModelRouter.reload_routes_on_every_request = false > > This will stop both the routes and the auto taglibs being regenerated > on every request. I personally prefer this as it is much faster but > you have to remember to restart the app when you change the routes or > change something that would affect the generated taglibs. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
