Actions
Patch #34160
closedReplace Hash#merge! with Hash#[]=
Description
Hash#[]=
is faster than Hash#merge!
.
https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantmerge
https://github.com/JuanitoFatas/fast-ruby#hashmerge-vs-hash-code
Replacement can be done with RuboCop:
bundle exec rubocop --only Performance/RedundantMerge -a
Actions