aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEugene Kenny <elkenny@gmail.com>2018-10-21 13:58:45 +0200
committerEugene Kenny <elkenny@gmail.com>2018-10-21 13:58:45 +0200
commitffc9ed3d3b59dd76cfe3fc1ff6913bd1d2aaf462 (patch)
tree4af949d4f1c09d9944d25770cf38c7c7f2214b3f /tools
parent26a202a91b5a4754be5e3e137c390786ec977e56 (diff)
downloadrails-ffc9ed3d3b59dd76cfe3fc1ff6913bd1d2aaf462.tar.gz
rails-ffc9ed3d3b59dd76cfe3fc1ff6913bd1d2aaf462.tar.bz2
rails-ffc9ed3d3b59dd76cfe3fc1ff6913bd1d2aaf462.zip
Reduce string allocations in read/write_attribute
When `attr_name` is passed as a symbol, it's currently converted to a string by `attribute_alias?`, and potentially also `attribute_alias`, as well as by the `read_attribute`/`write_attribute` method itself. By converting `attr_name` to a string up front, the extra allocations related to attribute aliases can be avoided.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions