Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-11318

puppet code merger should use concat not plus

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 7.13.0, PUP 6.26.0
    • None
    • Coremunity
    • Coremunity Kanban
    • Needs Assessment
    • Bug Fix
    • Reduces memory usage when parsing manifests.
    • Needs Assessment

    Description

      lib/puppet/pops/parser/code_merger.rb calls Array#+ which makes an unnecessary copy of parse results. It should call Array#flat_map instead.

      Attachments

        Activity

          People

            josh Josh Cooper
            josh Josh Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support