Project

General

Profile

Actions

Bug #24966

closed

Speed up t3lib_div::resolveBackPath

Added by Steffen Gebert almost 14 years ago. Updated almost 14 years ago.

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

0%

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

Description

This function is called several hundred times during BE page generation.

I was able to simplify the code and speed it up by using one single regexp (before ca2.0% of total execution time, afterwards ca1.3%)

However, one problem occurs for strings like 'dir1/dir2/..' (trainling ..).
The function doesn't seem to be called this way in the core, usually even a file name is given. Giving it 'dir1/dir2/../' works perfectly..

(issue imported from #M17494)


Files

resolveBackPath-regex.diff (1.34 KB) resolveBackPath-regex.diff Administrator Admin, 2011-02-05 23:00
resolveBackPath-comparison.diff (1.89 KB) resolveBackPath-comparison.diff Administrator Admin, 2011-02-05 23:00

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #24967: Add Unit Tests for t3lib_div::resolveBackPath()ClosedSteffen Gebert2011-02-05

Actions
Actions #1

Updated by Steffen Gebert almost 14 years ago

Closing this, as we can't make this tiny API change.. :(

Actions

Also available in: Atom PDF