Project

General

Profile

Actions

Bug #53556

closed

Epic #55070: Workpackages

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

Bug #52949: Speed decrease since 4.5

classLoader->loadClass calls requireOnce twice per class

Added by Ingo Schmitt over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
Start date:
2013-11-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Inside classLoad->LoadClass each class is loaded in line 134, but again in line 156.

134:

// Loads any known class via caching framework
        if ($require) {
            if ($this->classesCache->requireOnce($cacheEntryIdentifier) !== FALSE) {
                $cacheEntryCreated = TRUE;
            }
        }

156:

        if ($cacheEntryCreated && $require) {
            if ($this->classesCache->requireOnce($cacheEntryIdentifier) !== FALSE) {
                $cacheEntryCreated = TRUE;
            }
        }

By looking into the logic, it seams if a require was successful in the first part, the require is repeated in the second part. You could speed it up by checking if the require was successful in the first part and avoid the second require.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #53744: Change ClassLoader cache from proxy require files to standard cache backendsClosedThomas Maroschik2013-11-18

Actions
Actions

Also available in: Atom PDF