Project

General

Profile

Actions

Task #54734

closed

Epic #55070: Workpackages

Epic #55065: WP: Overall System Performance (Backend and Frontend)

Story #55078: Optimize PHP code performance in TYPO3 methods

Optimize ext_tables and ext_localconf cache files

Added by Michiel Roos over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Performance
Target version:
Start date:
2014-01-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
easy
Sprint Focus:

Description

The cache_core files ext_tables_[ident].php and ext_localconf_[ident].php are read for each frontend and backend request. So it makes sense to optimise them where possible.

The easy optimisations are:
  • Reduce calls to defined // if (!defined('TYPO3_MODE')
  • Resolve extPath once for each extension when generating cache files
  • Resolve extRelPath once for each extension when generating cache files
  • Resolve extPath once for each extension when generating cache files
  • Replace $_EXTKEY with actual extensionKey string
  • Only add the $_EXTCONF line if '$_EXTCONF' was found in the content
  • Only add the loadNewTcaColumnsConfigFiles() line if the string 'TCA' was found in the content
Nice to have:
  • Reduce calls to addToAllTCAtypes() and friends. This may be hard because unlike string replacements, these calls may reside inside of if statements checking for versionCompat etc.

Files

Screen_Shot_2014-01-04_at_00.04.54.png (31.6 KB) Screen_Shot_2014-01-04_at_00.04.54.png Before and after optimization. Page hit: /typo3/login.php Michiel Roos, 2014-01-04 00:08
Actions #1

Updated by Michiel Roos over 10 years ago

Before:
ext_localconf lines: 1.588
ext_tables lines: 3.201
method calls: 22.682

After:
ext_localconf lines: 1463
ext_tables lines: 2.979
method calls: 21.764

Actions #2

Updated by Gerrit Code Review over 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26634

Actions #3

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26634

Actions #4

Updated by Gerrit Code Review over 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26634

Actions #5

Updated by Gerrit Code Review over 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26634

Actions #6

Updated by Gerrit Code Review over 10 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26634

Actions #7

Updated by Gerrit Code Review over 10 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26634

Actions #8

Updated by Ernesto Baschny over 10 years ago

  • Parent task set to #55078
Actions #9

Updated by Gerrit Code Review over 10 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26634

Actions #10

Updated by Gerrit Code Review about 10 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26634

Actions #11

Updated by Wouter Wolters over 9 years ago

  • Status changed from Under Review to Closed

too risky.

Actions

Also available in: Atom PDF