This project is archived and is in readonly mode.

Changeset [3e22e0b0250e1386f68ebbdb7f23ae10888f5da6] by yury

August 28th, 2010 @ 09:54 PM

Micro optimization for build_named_route_call in PolymorphicRoutes:

  1. use map instead of inject
  2. use [].join("_") instead of '<<'. It is a little bit faster for ruby 1.9.2 and x2 faster for ruby 1.8.7. http://gist.github.com/548143

[#5450 state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/3e22e0b0250e1386f68ebbdb7f23ae...

Committed by yury

  • M actionpack/lib/action_dispatch/routing/polymorphic_routes.rb

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>