Task #54605
closedEpic #55070: Workpackages
Epic #55065: WP: Overall System Performance (Backend and Frontend)
Epic #55656: Optimize overall Extbase performance
Inject annotations should not be used by core (~5% performance)
100%
Description
The case:
Using inject annotations requires the Reflection framework to do expensive runtime analysis of all classes that get loaded (given: only once, if they are Singletons). This extra overhead (I measured it to around 5% in a pretty basic environment with a few extbase plugins) can be very easily avoided by always using injection methods.
I would personally have the core's classes always use injection methods to increase performance of the base system - and warn users in documentation, that inject annotations should be expected to slow down the code by approximately 5% (also affecting cached contexts, especially affecting the backend).
In our quest for better performance we can take this very easy path without any damage.
A revert merge request is coming right up.
Updated by Gerrit Code Review almost 11 years ago
- Status changed from New to Under Review
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26565
Updated by Gerrit Code Review almost 11 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26565
Updated by Markus Klein almost 11 years ago
Please check if #52040 should be reverted as well then.
Maybe also search the complete log for such @inject changes.
Updated by Marc Bastian Heinrichs over 10 years ago
- Category set to Extbase
- Assignee set to Marc Bastian Heinrichs
- Target version set to next-patchlevel
- Parent task set to #55656
Updated by Marc Bastian Heinrichs over 10 years ago
I'm on evaluating this and have a new patchset in the pipeline.
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29453
Updated by Gerrit Code Review over 9 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42270
Updated by Gerrit Code Review over 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42270
Updated by Gerrit Code Review over 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42270
Updated by Wouter Wolters over 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset 3d3d7aeef391cc9298048c8449780af822e0acd1.
Updated by Gerrit Code Review over 9 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42277
Updated by Wouter Wolters over 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset 11bb45f79125233942bcf5343c9593cd7a503a41.