aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorschneems <richard.schneeman+foo@gmail.com>2018-08-29 09:44:15 -0500
committerschneems <richard.schneeman+foo@gmail.com>2018-08-29 09:49:24 -0500
commite92adb3da6fef3388cc79abb03bf751baac8b2f0 (patch)
tree352cb074288094b273bb820cf3b839ae364bce18 /railties/test
parent068fe7dc9045856b822833db5cb7cb690e6000d7 (diff)
downloadrails-e92adb3da6fef3388cc79abb03bf751baac8b2f0.tar.gz
rails-e92adb3da6fef3388cc79abb03bf751baac8b2f0.tar.bz2
rails-e92adb3da6fef3388cc79abb03bf751baac8b2f0.zip
Fewer allocations in caching/fragments.rb
Instead of using a splat on the head and tail we can mutate the array by flattening 1 level. We get further savings by not allocating another via `compact` but instead by using `compact!`
Diffstat (limited to 'railties/test')
0 files changed, 0 insertions, 0 deletions