diff options
author | Jonathan Hefner <jonathan@hefner.pro> | 2019-05-04 12:54:28 -0500 |
---|---|---|
committer | Jonathan Hefner <jonathan@hefner.pro> | 2019-05-05 11:53:20 -0500 |
commit | 52498ccafd718975dc7ad8df2bf7f4a9614a239d (patch) | |
tree | 4fd8204ceab1526df8f754d30e6d378362d4d1a3 /actionmailbox/test/controllers | |
parent | 9b0e632def6a66bbd0c0aba8531b2a173f7c3064 (diff) | |
download | rails-52498ccafd718975dc7ad8df2bf7f4a9614a239d.tar.gz rails-52498ccafd718975dc7ad8df2bf7f4a9614a239d.tar.bz2 rails-52498ccafd718975dc7ad8df2bf7f4a9614a239d.zip |
Avoid extra allocation in String#from and #to
Removes unnecessary Range object allocations for a significant speed-up.
String#from Comparison:
new: 3378594.0 i/s
old: 2380129.8 i/s - 1.42x slower
String#to Comparison:
new: 2866175.7 i/s
old: 2304406.4 i/s - 1.24x slower
Diffstat (limited to 'actionmailbox/test/controllers')
0 files changed, 0 insertions, 0 deletions