aboutsummaryrefslogtreecommitdiffstats
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2015-07-30 12:34:48 -0500
committerschneems <richard.schneeman@gmail.com>2015-07-30 12:34:48 -0500
commit22f592401444a83b7b2d3c2165ac666d69955d08 (patch)
tree7a17fb1c71c4bce7a6c1d08c7307be6ceb721f6f /CONTRIBUTING.md
parent61dae882546f643050c47e573161a467e156c704 (diff)
downloadrails-22f592401444a83b7b2d3c2165ac666d69955d08.tar.gz
rails-22f592401444a83b7b2d3c2165ac666d69955d08.tar.bz2
rails-22f592401444a83b7b2d3c2165ac666d69955d08.zip
Use delete_if instead of each; delete(key)
It is slightly faster: ``` Calculating ------------------------------------- each; delete 35.166k i/100ms delete_if 36.416k i/100ms ------------------------------------------------- each; delete 478.026k (± 8.5%) i/s - 2.391M delete_if 485.123k (± 7.9%) i/s - 2.440M ```
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions