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

freeze string in the prime candidates files

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 6.25.0, PUP 7.11.0
    • None
    • Enhancement
    • This enhancement lowers memory consumption by about 10%. This is achieved through making string literals frozen in some of our highest memory consumption Ruby files.
    • Needs Assessment

    Description

      freeze string in the prime candidates files:

      lib/puppet/concurrent/thread_local_singleton.rb
      lib/puppet/parser/scope.rb
      lib/puppet/parser/templatewrapper.rb
      lib/puppet/pops/model/factory.rb
      lib/puppet/pops/model/ast.rb
      lib/puppet/pops/parser/lexer2.rb
      lib/puppet/pops/parser/slurp_support.rb
      lib/puppet/pops/types/type_formatter.rb
      lib/puppet/resource/type_collection.rb
      lib/puppet/util/tagging.rb

       

      if the changes are not trivial, follow-up tickets should be created.

      see parent epic comments on how to check memory usage

      Attachments

        Activity

          People

            luchian.nemes Luchian Nemes
            ciprian.badescu Ciprian Badescu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support