the constructor calculates the same stuff over and over again on __construct() each request.... We are talking about a small count of vlaues: hardcode them
#1 Updated by Stephan Großberndt about 5 years ago
You are talking about TYPO3\CMS\Core\Localization\Locales?
It implements \TYPO3\CMS\Core\SingletonInterface, initialize() it is only called once per request.
$instance->languages and $instance->localeDependencies cannot be put in the class because of user-defined locales.
The only optimization possible would be to remove
$instance->isoMapping = array_flip($instance->isoReverseMapping);
and put the "->isoMapping" array into the class hardcoded.
Is this what you intended with this bug report?
#4 Updated by Morton Jonuschat almost 4 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.