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

Optimize TypeParser for common data type string

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 5.4.0
    • None
    • None
    • Not Needed
    • Since we have no real world benchmarks for this it is not worth a release note.
    • No Action

    Description

      The TypeParser uses the regular puppet parser to get a data type from a string with the definition of a data type (for example "String[1]"). This is done because types can be complex expressions. Most use of data types is however very simple. There is an opportunity to optimize the performance by checking for simple and common data types and skip lexing/parsing/validation etc.

      Optimization could recognize all unparameterized data types, as well as the most common parameterized data types like:

      • String[1]
      • Array[1]
      • Boolean[false], Boolean[true]
      • Optional[String], Optional[Integer], ...

      Attachments

        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