Project

General

Profile

Actions

Patch #29299

closed

Use Enumerable#sort_by instead of Enumerable#sort

Added by Go MAEDA over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

According to 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.


Files

Actions

Also available in: Atom PDF