aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/csrf_helper.rb
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2015-07-25 16:58:22 -0500
committerschneems <richard.schneeman@gmail.com>2015-07-30 12:31:04 -0500
commit1993e2ccbd7c5651278ea30bdc9d8034f5197945 (patch)
treeff127650c2bba2b88c8601b832bb50fd7ac3d55e /actionview/lib/action_view/helpers/csrf_helper.rb
parent3fb9e802436a5e3b5733ea9d5cb3964a32a3d8f9 (diff)
downloadrails-1993e2ccbd7c5651278ea30bdc9d8034f5197945.tar.gz
rails-1993e2ccbd7c5651278ea30bdc9d8034f5197945.tar.bz2
rails-1993e2ccbd7c5651278ea30bdc9d8034f5197945.zip
Avoid hash duplication by skipping mutation
If we don't mutate the `recall` hash, then there's no reason to duplicate it. While this change doesn't get rid of that many objects, each hash object it gets rid of was massive. Saves 888 string objects per request, 206,013 bytes (thats 0.2 mb which is kinda a lot).
Diffstat (limited to 'actionview/lib/action_view/helpers/csrf_helper.rb')
0 files changed, 0 insertions, 0 deletions