This project is archived and is in readonly mode.

#4760 ✓invalid
August Lilleaas

Environment load time increases drastically when many routes are added

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

Here's rake routes of's Rails 3 rewrite. (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:

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>