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

The merge() function should be able to merge iteratively

    XMLWordPrintable

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support