Actions
Task #82237
closedBackend generates the same URL multiple times, caching can help performance
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-08-29
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:
On Location Sprint
Description
The TYPO3 backend is very eager to generate the same URL multiple times. This isn't necessarily a problem in itself but the UriBuilder both continuously re-loads backend routes and uses a class which takes a constructor argument and immediately parses the provided URL. Those things combined result in several hundred calls to GeneralUtility::makeInstance and about three times as many calls to explode().
Caching (in memory only) a generated URL based on route name, parameters and abs/rel type saves about 2/3 of calls to generate route URLs in the page module alone. Turning the UriBuilder into a singleton further facilitates this and reduces calls to instanciateObject.
Actions