Project

General

Profile

Actions

Bug #23104

closed

Enhancement of t3lib_div::isFirstPartOfStr

Added by Michiel Roos over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-07-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

t3lib_div::isFirstPartOfStr can be optimized by making use of the PHP version of isFirstPartOfStr called: strpos.

This function is called quite a lot. 513 times for rendering an average page tree in the BE for example.

A speed gain from 38 - 87 % can be achieved (on this function)

(issue imported from #M15002)


Files

15002.diff (960 Bytes) 15002.diff Administrator Admin, 2010-07-05 09:37
15002_test.php (1.27 KB) 15002_test.php Administrator Admin, 2010-07-05 09:38
15002_test_v2.php (2.69 KB) 15002_test_v2.php Administrator Admin, 2010-07-05 17:28
15002_v2.diff (865 Bytes) 15002_v2.diff Administrator Admin, 2010-07-05 17:28
15002_test_v3.php (3.3 KB) 15002_test_v3.php Administrator Admin, 2010-07-05 17:41
15002_test_v5.php (2.39 KB) 15002_test_v5.php Administrator Admin, 2010-07-05 23:40
15002_v3.diff (1.02 KB) 15002_v3.diff Administrator Admin, 2010-07-05 23:40
15020_testInt_v1.diff (482 Bytes) 15020_testInt_v1.diff Administrator Admin, 2010-07-06 23:42
15020_testInt_test_v1.php (906 Bytes) 15020_testInt_test_v1.php Administrator Admin, 2010-07-06 23:42
15002_test_v6.php (2.82 KB) 15002_test_v6.php Administrator Admin, 2010-07-06 23:43

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #21123: isFirstPartOfStr doesn't work with non-stringsClosedSteffen Kamper2010-08-12

Actions
Actions #1

Updated by Christian Kuhn over 14 years ago

Sorry we mixed up the issues a bit. This issue is now resolved as duplicate of #21123.

Actions #2

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF