Project

General

Profile

Actions

Patch #27671

closed

Use reverse_each instead of reverse.each for better performance

Added by Go MAEDA about 7 years ago. Updated almost 7 years ago.

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

0%

Estimated time:

Description

Array#reverse_each is faster than Array#reverse.each because reverse_each does not create an intermediate array.

Pull request https://github.com/redmine/redmine/pull/84 by Timur Tarasenko.


Files

use-reverse_each.diff (3.24 KB) use-reverse_each.diff Go MAEDA, 2017-11-29 03:23
Actions

Also available in: Atom PDF