Forum: Ruby on Rails routes.rb bad performance

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2007-05-26 12:48
(Received via mailing list)
My config/routes.rb is about 200 lines.

I do some experiment with two different routes.rb,
a) routes.rb with 200 lines, and
b) routes.rb with only one line ( map.connect
':controller/:action/:id')

and the result,

a) takes 0.4s, and
b) takes 1.7s

My routes.rb is not very complicated, just some string matching like
map.connect 'user/:username/home/:action/:id' , :controller =>
'user_home'
...
but I really need those routes setting.

Any idea how to improve the performance?
This topic is locked and can not be replied to.