Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Platform Core
-
Platform Core KANBAN
-
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], ...