[MODULES-8760] The merge() function should be able to merge iteratively Created: 2019/03/20 Updated: 2019/05/09
|Status:||Ready for CI|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|QA Risk Assessment:||Needs Assessment|
In order to facilitate more performant building of hashes it is of value to let merge() support iterating over an Iterable and where each produced hash is merged into the result. This can currently only be achieved by using reduce() and it has performance issues when merging a large number of hashes as each iteration produces a (growing) copy.
An alternative in Puppet 6 is to use the functions `partition` and `group_by`, but those do not solve the common problem of building a hash from pieces.