diff options
author | schneems <richard.schneeman@gmail.com> | 2015-07-26 14:37:21 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-07-30 12:31:05 -0500 |
commit | 1f831fefe226ed42e89c0b58076f5b6d66588d7e (patch) | |
tree | 4906ec742b7fe1f4283d362a2b1b783f19ff978a /activesupport/lib/active_support/cache.rb | |
parent | 0d7a714dcae69668429c4b79e36f1b47d6c898e4 (diff) | |
download | rails-1f831fefe226ed42e89c0b58076f5b6d66588d7e.tar.gz rails-1f831fefe226ed42e89c0b58076f5b6d66588d7e.tar.bz2 rails-1f831fefe226ed42e89c0b58076f5b6d66588d7e.zip |
Don't allocate array when not necessary
In the `tag_options` method an array is used to build up elements, then `Array#*` (which is an alias for `Array#join` is called to turn the array into a string. Instead of allocating an array to build a string, we can build the string we want from the beginning.
Saved: 121,743 bytes 893 objects
Diffstat (limited to 'activesupport/lib/active_support/cache.rb')
0 files changed, 0 insertions, 0 deletions