diff options
author | schneems <richard.schneeman@gmail.com> | 2015-07-30 12:34:48 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-07-30 12:34:48 -0500 |
commit | 22f592401444a83b7b2d3c2165ac666d69955d08 (patch) | |
tree | 7a17fb1c71c4bce7a6c1d08c7307be6ceb721f6f /CONTRIBUTING.md | |
parent | 61dae882546f643050c47e573161a467e156c704 (diff) | |
download | rails-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