diff options
author | schneems <richard.schneeman+foo@gmail.com> | 2018-08-29 09:44:15 -0500 |
---|---|---|
committer | schneems <richard.schneeman+foo@gmail.com> | 2018-08-29 09:49:24 -0500 |
commit | e92adb3da6fef3388cc79abb03bf751baac8b2f0 (patch) | |
tree | 352cb074288094b273bb820cf3b839ae364bce18 /activerecord/test/cases/arel/attributes/attribute_test.rb | |
parent | 068fe7dc9045856b822833db5cb7cb690e6000d7 (diff) | |
download | rails-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 'activerecord/test/cases/arel/attributes/attribute_test.rb')
0 files changed, 0 insertions, 0 deletions