Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-8760

The merge() function should be able to merge iteratively

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Ready for CI
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • QA Risk Assessment:
      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

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              henrik.lindberg Henrik Lindberg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support