[TASK] Optimize speed for instantiating class with arguments 08/33308/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 14 Dec 2013 22:35:02 +0000 (23:35 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 14 Oct 2014 21:15:11 +0000 (23:15 +0200)
commit5c8081ad4487a66bad333149c65fe706106ad938
tree12720470ae71a66aae4b0579360297a0ffad005d
parent9bae63e562dc65efcd12f19db995c92039d0d366
[TASK] Optimize speed for instantiating class with arguments

PHP reflection has quite an overhead in performance.
Use a switch construct like in Flow instead to
instantiate classes with up to 8 arguments without
reflection.

Resolves: #53682
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I8ab21fa5ae609fc4653205f4b53c51ed61618ea7
Reviewed-on: http://review.typo3.org/33308
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
t3lib/class.t3lib_div.php
typo3/sysext/cms/tslib/class.tslib_content.php