[TASK] Optimize speed for instantiating class with arguments 43/26643/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 14 Dec 2013 22:35:02 +0000 (23:35 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 17 Jan 2014 08:28:02 +0000 (09:28 +0100)
commit2526bddb5b27ca832575fad809facfa39c7db225
tree686edb0b50cfaf02c3eb93fe26e56f03598d97a1
parent102307f618862795397d4df48a150ba41ed154fd
[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: I82ecf0b1ea9a412a39b4429d7689f2bb6489f3df
Reviewed-on: https://review.typo3.org/26643
Reviewed-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
t3lib/class.t3lib_div.php
typo3/sysext/cms/tslib/class.tslib_content.php