[TASK] Avoid thousands of removeDotsFromTs in TemplatePaths 94/57294/2
authorClaus Due <claus@namelesscoder.net>
Fri, 22 Jun 2018 13:16:59 +0000 (15:16 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sat, 23 Jun 2018 19:38:43 +0000 (21:38 +0200)
commit24cf38d88a92f77516c5c4e3b9f1e9e6981094b9
tree429b4f63dcc67859f7ed33bc9d865267c11bdf46
parente504520521595c5cd85687624f537de3e1ad6986
[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/57294
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/fluid/Classes/View/TemplatePaths.php