diff options
author | schneems <richard.schneeman@gmail.com> | 2015-07-24 23:27:35 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-07-29 20:41:57 -0500 |
commit | 1a14074fb525cde4a439a1fb7515fe417c37ff96 (patch) | |
tree | 946ab830a618370036698d4e462ac3e31ef9f5ef /actionview/lib/action_view/helpers/csrf_helper.rb | |
parent | 0cbec58ae48279ae5e9fdf6bbdbceb32183215dd (diff) | |
download | rails-1a14074fb525cde4a439a1fb7515fe417c37ff96.tar.gz rails-1a14074fb525cde4a439a1fb7515fe417c37ff96.tar.bz2 rails-1a14074fb525cde4a439a1fb7515fe417c37ff96.zip |
Reduce hash allocations in route_set
When generating a url with `url_for` the hash of arguments passed in, is dup-d and merged a TON. I wish I could clean this up better, and might be able to do it in the future. This change removes one dup, since it's literally right after we just dup-d the hash to pass into this constructor.
This may be a breaking, change but the tests pass...so :shipit: we can revert if it causes problems
This change buys us 205,933 bytes of memory and 887 fewer objects per request.
Diffstat (limited to 'actionview/lib/action_view/helpers/csrf_helper.rb')
0 files changed, 0 insertions, 0 deletions