diff options
author | Michael Lovitt <michael@lovitt.net> | 2017-05-18 15:38:30 -0500 |
---|---|---|
committer | Michael Lovitt <michael@lovitt.net> | 2017-05-24 17:26:20 -0500 |
commit | a24912cb1d34912a16aa27d952beff825e558f1f (patch) | |
tree | c860c8d40137e75b3401db06bcf955a79c7a5bad /railties/lib/rails/templates | |
parent | 0fa9084a18d1d9c4765c526b740f3f0b550055ca (diff) | |
download | rails-a24912cb1d34912a16aa27d952beff825e558f1f.tar.gz rails-a24912cb1d34912a16aa27d952beff825e558f1f.tar.bz2 rails-a24912cb1d34912a16aa27d952beff825e558f1f.zip |
Performance optimization for AttributeSet#deep_dup
Skip the call to #dup, since it does a shallow copy of attributes,
which is wasted effort, since #deep_dup then replaces that
shallow copy with a #deep_dup of the given attributes.
This change addresses slowness in ActiveRecord initialization
introduced starting in Rails 5.0.
Diffstat (limited to 'railties/lib/rails/templates')
0 files changed, 0 insertions, 0 deletions