Project

General

Profile

Actions

Task #54856

closed

Optimize TypoScriptParser

Added by Michiel Roos over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
Start date:
2014-01-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
medium
Sprint Focus:

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%

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #55357: TS Parser: Fix regression when having tabs in TS namesClosedBenni Mack2014-01-27

Actions
Related to TYPO3 Core - Bug #62188: TypoScriptParser doesn't trim modificator anymoreClosedStefan Froemken2014-10-13

Actions
Actions

Also available in: Atom PDF