This project is archived and is in readonly mode.
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:
- use map instead of inject
- 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
-
Repository August 28th, 2010 @ 10:08 PM
- State changed from new to resolved
(from [3e22e0b0250e1386f68ebbdb7f23ae10888f5da6]) Micro optimization for build_named_route_call in PolymorphicRoutes:
- use map instead of inject
- 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... -
Repository August 28th, 2010 @ 10:09 PM
(from [331234e0aba80cdaa87f57dffd71afdd7175a700]) Micro optimization for build_named_route_call in PolymorphicRoutes:
- use map instead of inject
- 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/331234e0aba80cdaa87f57dffd71af... - use map instead of inject
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
Referenced by
- 5450 Micro optimization for build_named_route_call in PolymorphicRoute [#5450 state:resolved]
- 5450 Micro optimization for build_named_route_call in PolymorphicRoute [#5450 state:resolved]