Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Environment load time increases drastically when many routes are added

#4760

Here's rake routes of gitorious.org's Rails 3 rewrite. http://ditrw.com/_dump/gitorious_rake_routes.txt (also attached)

rake environment churns for about 20-25 seconds before it exits. If I remove all the routes, it takes about 3-4 seconds.

Here's routes.rb and friends at the time of the rake routes output above: http://gist.github.com/423134

I added a puts at the bottom of routes.rb. That appeared after 5 or so seconds, so it seems that it's not the execution of routes.rb that takes so long, but rather whatever Rails does with post processing them as the environment loads.

Reported by August Lilleaas · June 3rd, 2010 @ 04:26 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. August Lilleaas
    August Lilleaas

    Can be closed. Unable to replicate these long load times in a new Rails app, so something in my code is most likely to blame.

    June 7th, 2010 @ 09:01 AM

  2. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to incomplete

    June 7th, 2010 @ 06:42 PM

  3. Santiago Pastorino
    Santiago Pastorino
    • State changed from incomplete to invalid

    June 7th, 2010 @ 06:42 PM