diff options
author | schneems <richard.schneeman+foo@gmail.com> | 2018-08-30 09:57:01 -0500 |
---|---|---|
committer | schneems <richard.schneeman+foo@gmail.com> | 2018-08-30 09:57:58 -0500 |
commit | 897c377bad1cb5aa0c35e86c677e6b51cd3da2ac (patch) | |
tree | 27b6985d250650a9f3cb33efc41709f5fd53c14f /activerecord/lib/active_record/persistence.rb | |
parent | cc81cd359c82bfba27388237a455fc345dce3c9f (diff) | |
download | rails-897c377bad1cb5aa0c35e86c677e6b51cd3da2ac.tar.gz rails-897c377bad1cb5aa0c35e86c677e6b51cd3da2ac.tar.bz2 rails-897c377bad1cb5aa0c35e86c677e6b51cd3da2ac.zip |
Do not recompute length
We can get a speed gain by moving the length calculation and assignment out of the loop.
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
0 files changed, 0 insertions, 0 deletions