Vote #79451
完了Use Enumerable#sort_by instead of Enumerable#sort
0%
説明
According to "Fast Ruby":https://github.com/JuanitoFatas/fast-ruby, @Enumerable#sort_by@ is much faster than @Enumerable#sort@. You can read details on https://github.com/JuanitoFatas/fast-ruby#enumerablesort-vs-enumerablesort_by-code.
This patch replaces sort with sort_by to improve performance.
journals
--------------------------------------------------------------------------------
Updated the patch. Replaced more @sort@ methods.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Setting the target version to 4.1.0.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------