Skip to content

Conversation

@josevalim
Copy link
Contributor

No description provided.

josevalim added a commit that referenced this pull request Mar 2, 2012
Optimize routes generation in simple cases.

If you pass to the route helper the same amount of arguments
as the required segments, route generation will be optimized
as a string interpolation. After this commit, `post_path(post)`
is about 6.5 times faster, `post_url(post)` is about 5 times.
@josevalim josevalim merged commit 1a046ab into master Mar 2, 2012
@jeremy
Copy link
Member

jeremy commented Mar 2, 2012

Nice patch. Got execution time / object allocation benchmarks?

@josevalim
Copy link
Contributor Author

No, could you pls bro?

@jeremy
Copy link
Member

jeremy commented Mar 2, 2012

I'll PDI :shipit:

@amatsuda amatsuda deleted the opt_routes branch September 18, 2015 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants