Actions
Task #80283
closedUse direct array assignments instead of array_push
Start date:
2017-03-15
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
This is a micro optimization, since array_push is slower than direct assignments.
Direct assignments are also more readable than array_push. Occurrences with only one element in the value list should be changed to direct assignments.
Tiny little benchmark, just in case someone wants to have a look: https://3v4l.org/tk351
Updated by Gerrit Code Review over 7 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/52049
Updated by Gerrit Code Review over 7 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/52049
Updated by Cedric Ziel over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c1aeda6d016330abbc9bf62f2cfbce22c66714f0.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed
Actions