[TASK] Change if conditions in LocalizationUtility 66/34266/6
authorStefan Froemken <froemken@gmail.com>
Fri, 14 Nov 2014 18:32:29 +0000 (19:32 +0100)
committerFrank Nägler <typo3@naegler.net>
Fri, 8 May 2015 21:48:49 +0000 (23:48 +0200)
commit217954659043ff6ed48a2d5f2e1f6c3207cb9b21
treeb6808f2988f5e2313857b61cc862aa124fa95204
parent2bc2196274a0c895fadcff01b5693fa67b16204e
[TASK] Change if conditions in LocalizationUtility

With each call to translate we call isFirstPartOfString.
This method is really fast but in case of extensionmanager
it was called over 700 times. This results in 7
milliseconds.
I have changed the if calls to improve performance

Resolves: #63026
Releases: master
Change-Id: I7beff8c49c235aa791c2d08438e5ac92bd7dc883
Reviewed-on: http://review.typo3.org/34266
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/extbase/Classes/Utility/LocalizationUtility.php