secrectcode-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-May-26 08:47 UTC
routes.rb bad performance
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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---