Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Return a sized Enumerator from Hash#{transform_values{!}|transform_keys{!}} | Kenichi Kamiya | 2015-09-29 | 1 | -2/+2 |
| | |||||
* | Merge pull request #21782 from ronakjangir47/transform_values_docs | Rafael Mendonça França | 2015-09-28 | 1 | -3/+8 |
|\ | | | | | Updated docs for transform_keys & transform_values | ||||
| * | Updated docs for transform_values [ci skip] | Ronak Jangir | 2015-09-28 | 1 | -3/+8 |
| | | |||||
* | | Speed up `Hash#transform_values` when empty | Sean Griffin | 2015-09-28 | 1 | -0/+1 |
|/ | | | | | | | | | | | | | | | | We're calling this function on an empty hash as part of copying the attribute set during dirty checking initialization. The new structure caused a performance regression on loading records from the database. This causes `User.all.to_a` to perform about 10% faster w/ 10k records. Calculating ------------------------------------- User.all - master 9.000 i/100ms User.all - sg-fix-ar-regression 8.000 i/100ms ------------------------------------------------- User.all - master 81.236 (± 7.4%) i/s - 405.000 User.all - sg-fix-ar-regression 89.716 (± 7.8%) i/s - 448.000 | ||||
* | Return an Enumerator if no block is given | Erik Michaels-Ober | 2014-07-12 | 1 | -0/+2 |
| | |||||
* | Don't construct a Proc if no block is given | Erik Michaels-Ober | 2014-07-12 | 1 | -1/+1 |
| | |||||
* | Add `Hash#map_values` to ActiveSupport | Sean Griffin | 2014-06-29 | 1 | -0/+21 |
Didn't get a chance to convert existing code, I'll skim through the code base to make use of this later this afternoon. |