Project

General

Profile

Actions

Patch #29305

closed

Use Hash#each_key instead of Hash#keys.each

Patch #29305: Use Hash#each_key instead of Hash#keys.each

Added by Go MAEDA over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:

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

Updated by Go MAEDA over 8 years ago Actions #1

  • Target version set to 4.1.0

Updated by Go MAEDA over 8 years ago Actions #2

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

Committed.

Updated by Go MAEDA about 8 years ago Actions #3

  • Assignee set to Go MAEDA
Actions

Also available in: PDF Atom