Actions
Bug #24959
closedMake createVersionNumberedFilename() use native dirname() function
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
t3lib_div::createVersionNumberedFilename() calls t3lib_div::dirname() which explodes the path.
The whole thing is called few hundered times, while opening the Backend. This takes ~1.5% of the BE generation time.
Calling PHP's native dirname() function could speed up createVersionNumberedFilename, we just have to take care of the slightly differences! (providing /foo/bar/ returns /foo/, currently we get /foo/bar/)
(issue imported from #M17487)
Actions