This project is archived and is in readonly mode.

#5450 ✓resolved
yury

Micro optimization for build_named_route_call in PolymorphicRoute

Reported by yury | August 24th, 2010 @ 08:41 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

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

People watching this ticket

Attachments