aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/transform_values.rb
Commit message (Collapse)AuthorAgeFilesLines
* Return a sized Enumerator from Hash#{transform_values{!}|transform_keys{!}}Kenichi Kamiya2015-09-291-2/+2
|
* Merge pull request #21782 from ronakjangir47/transform_values_docsRafael Mendonça França2015-09-281-3/+8
|\ | | | | Updated docs for transform_keys & transform_values
| * Updated docs for transform_values [ci skip]Ronak Jangir2015-09-281-3/+8
| |
* | Speed up `Hash#transform_values` when emptySean Griffin2015-09-281-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 givenErik Michaels-Ober2014-07-121-0/+2
|
* Don't construct a Proc if no block is givenErik Michaels-Ober2014-07-121-1/+1
|
* Add `Hash#map_values` to ActiveSupportSean Griffin2014-06-291-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.