[TASK] Optimize speed for instantiating class with arguments 63/26363/6
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 12 Dec 2013 21:44:42 +0000 (22:44 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 14 Dec 2013 21:24:21 +0000 (22:24 +0100)
commit6eb7a548125a945316f8ad32eb3e5481a28ae2d6
treeb12442e96c90b1a592a8c18820d986374a7a932c
parentf2e37267a284807593ef762e82bd52ea64647501
[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
Change-Id: I82ecf0b1ea9a412a39b4429d7689f2bb6489f3df
Reviewed-on: https://review.typo3.org/26363
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Utility/GeneralUtility.php