[TASK] Avoid thousands of removeDotsFromTs in TemplatePaths 51/57351/2
authorClaus Due <claus@namelesscoder.net>
Fri, 22 Jun 2018 13:16:59 +0000 (15:16 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 24 Jun 2018 21:51:05 +0000 (23:51 +0200)
commitc7f493079f03385aa0bb2ae07ff001d580e26b39
treed7629730c7077885af6e29de36a6bc8581be7a6c
parent2c2a695d04c73d5f37e65791645a779c66218c18
[TASK] Avoid thousands of removeDotsFromTs in TemplatePaths

This patch avoids calling GeneralUtility::removeDotsFromTs
on the entire TS array, instead selectively calling it only on
the sub-array and only if a sub-array was actually resolved.

In my extremely small testing setup this patch avoids 1,100
calls in FE and 6,000 calls in BE (in page module with fluid
previews being rendered).

Change-Id: I7195aa310711d82de4861df8dcb2a9fbda309520
Releases: master, 8.7
Resolves: #85341
Reviewed-on: https://review.typo3.org/57351
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/fluid/Classes/View/TemplatePaths.php