#24966Speed up t3lib_div::resolveBackPath
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.