Bug #56337
closed
Epic #55070: Workpackages
Epic #55065: WP: Overall System Performance (Backend and Frontend)
Bug #52949: Speed decrease since 4.5
Bug #56307: Findings from Bootstrap/PackageManager/ClassLoader analyses
Remove manual array calculation in Locales and put the arrays to the class directly
Added by Steffen Ritter over 10 years ago.
Updated almost 9 years ago.
Description
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
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?
Steffen, can you please explain what was intended here?
- Status changed from New to Needs Feedback
- 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.
Also available in: Atom
PDF