Project

General

Profile

Actions

Patch #29305

closed

Use Hash#each_key instead of Hash#keys.each

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

Hash#each_key is faster than Hash#keys.each because it does not allocate a new array when iterating keys. See https://github.com/JuanitoFatas/fast-ruby#hasheach_key-instead-of-hashkeyseach-code for details.


Files

Actions #1

Updated by Go MAEDA over 5 years ago

  • Target version set to 4.1.0
Actions #2

Updated by Go MAEDA over 5 years ago

  • Status changed from New to Closed
  • Target version changed from 4.1.0 to 4.0.0

Committed.

Actions #3

Updated by Go MAEDA over 5 years ago

  • Assignee set to Go MAEDA
Actions

Also available in: Atom PDF