diff options
author | schneems <richard.schneeman@gmail.com> | 2015-07-24 23:41:25 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-07-29 20:41:58 -0500 |
commit | 2e95d2ef90a32a7ed6fbb14f4e0a6764fc9e017b (patch) | |
tree | b95072995f2a953c41d8e828c29f2900624f95a3 /actionview/lib | |
parent | 2a4d4301d405dbc4a6bce85b4632a78099c8d1c6 (diff) | |
download | rails-2e95d2ef90a32a7ed6fbb14f4e0a6764fc9e017b.tar.gz rails-2e95d2ef90a32a7ed6fbb14f4e0a6764fc9e017b.tar.bz2 rails-2e95d2ef90a32a7ed6fbb14f4e0a6764fc9e017b.zip |
Optimize hash key
No idea why on earth this hash key isn't already optimized by MRI, but it isn't. :shit:
This change buys us 74,077 bytes of memory and 1,852 fewer objects per request.
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/url_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb index 7d92651183..5eb1377d38 100644 --- a/actionview/lib/action_view/helpers/url_helper.rb +++ b/actionview/lib/action_view/helpers/url_helper.rb @@ -184,7 +184,7 @@ module ActionView html_options = convert_options_to_data_attributes(options, html_options) url = url_for(options) - html_options['href'] ||= url + html_options["href".freeze] ||= url content_tag(:a, name || url, html_options, &block) end |