diff options
author | lvl0nax <lvl0nax@gmail.com> | 2016-05-13 16:43:01 +0300 |
---|---|---|
committer | lvl0nax <lvl0nax@gmail.com> | 2016-05-14 09:16:30 +0300 |
commit | 6751b1032070a3b26e89a151cbe564a354eb580d (patch) | |
tree | 9780a7c78d04b23826617f1b6583559830b07511 /activesupport/lib/active_support.rb | |
parent | b6429b871ff8b73ebd10076ead6ed2c1f651da86 (diff) | |
download | rails-6751b1032070a3b26e89a151cbe564a354eb580d.tar.gz rails-6751b1032070a3b26e89a151cbe564a354eb580d.tar.bz2 rails-6751b1032070a3b26e89a151cbe564a354eb580d.zip |
Perfomance fix for Enumerable#index_by
Calculating -------------------------------------
before 34.731k i/100ms
after 48.206k i/100ms
-------------------------------------------------
before 508.451k (± 1.2%) i/s - 2.570M
after 720.068k (± 0.9%) i/s - 3.615M
Comparison:
after: 720067.6 i/s
before: 508451.1 i/s - 1.42x slower
Diffstat (limited to 'activesupport/lib/active_support.rb')
0 files changed, 0 insertions, 0 deletions