Issue Task Closed

#54856Optimize TypoScriptParser

Michiel Roos 01/08/14, 23:00 updated 10/23/17, 21:41

Description

The code in \TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser gets called a lot. It needs to be optimised.

Problems:
  • Usage of inefficient function calls where language constructs would do the job
  • No dedicated Frontend parsing path. All the highlighting and linenumbering ifs are checked over and over for each layer of TypoScript that is being parsed
  • The amount of function calls can be greatly reduced

For the Introduction package, a page hit that is not yet in TYPO3 cache:

Number of Function Calls
before:    135.185
after:     111.251
reduction: -23.934 Or -17,7%

Incl. Wall Time
before:      6,31 s
after:       1,22 s
reduction:  -5,09 s Or -80,6%

Reviews 3