Actions
Task #54856
closedOptimize TypoScriptParser
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%
Actions