Task #51283
closedUse array access instead of traversing hook array
100%
Description
In "TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer" in method "cObjGetSingle" the array of hook objects is traversed to look for a hook object for the currently rendered cObject. This is not fast.
Instead check if there is a hook object for the current cObject defined by making an array access.
Patch attached.
Files
Updated by Bernhard Kraft about 11 years ago
- File patch_51283.diff patch_51283.diff added
Updated by Gerrit Code Review about 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23267
Updated by Gerrit Code Review almost 11 years ago
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/23267
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/23267
Updated by Gerrit Code Review almost 11 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/23267
Updated by Anonymous almost 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 30 to 100
Applied in changeset c8f46f48ff398b74dc6bd934e99060178b967153.