Details
-
New Feature
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Needs Assessment
Description
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.
Attachments
Issue Links
- causes
-
MODULES-11099 stdlib: merge() function no longer accept hashes containing type references
-
- Resolved
-
- is duplicated by
-
PUP-9568 Migrate merge() from stdlib and make it support iterative creation of hash
-
- Closed
-
- relates to
-
PUP-9561 puppet language functions are 11,350x slower than ruby functions
-
- Resolved
-