Bug #56337

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 1 year ago. Updated 16 days ago.

Status:Needs Feedback Start date:2014-02-26
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:- Spent time: -
Target version:-
TYPO3 Version:6.2 Is Regression:No
PHP Version: Sprint Focus:
Complexity:

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

History

#1 Updated by Stephan Großberndt 11 months 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?

#2 Updated by Stephan Großberndt 5 months ago

Steffen, can you please explain what was intended here?

#3 Updated by Wouter Wolters 16 days ago

  • Status changed from New to Needs Feedback

Also available in: Atom PDF