Project

General

Profile

Actions

Patch #34399

closed

Use sum { ... } instead of map { ... }.sum

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

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

0%

Estimated time:

Description

The attached patch removes unnecessary map/collect method calls. I have generated the attached patch with rubocop-performance 1.9.0.


Files

performance-sum.diff (1.87 KB) performance-sum.diff Go MAEDA, 2020-12-06 02:28
Actions #1

Updated by Go MAEDA over 3 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch.

Actions

Also available in: Atom PDF