diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-11-05 10:59:50 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-11-05 11:05:16 -0700 |
commit | 8fee923888192a658d8823b31e77ed0683dfd665 (patch) | |
tree | 27b28c9971a98e770e1a14c4be46174754f0f6d7 /activesupport/test/core_ext/date_time_ext_test.rb | |
parent | 00ae750b23f0f9f59fd7058fc3bff043d2a04c5f (diff) | |
download | rails-8fee923888192a658d8823b31e77ed0683dfd665.tar.gz rails-8fee923888192a658d8823b31e77ed0683dfd665.tar.bz2 rails-8fee923888192a658d8823b31e77ed0683dfd665.zip |
Improve performance of AR object instantiation
We introduced a performance hit by adding an additional iteration
through a model's attributes on creation. We don't actually need the
values from `Result` to be a hash, we can separate the columns and
values and zip them up ourself during the iteration that we have to do.
Diffstat (limited to 'activesupport/test/core_ext/date_time_ext_test.rb')
0 files changed, 0 insertions, 0 deletions