#14978Search Result Rendering is very slow, when showing large embedded Dokuments (pdf)
Description
We had a Typo3 based Document Management, where we used the indexed search for a fulltext search in the embedded documents. PDFs with more than 100 pages (but smaller as well) slow the rendering process down, so it took longer than 2 minutes for the results to appear.
I found out that most of the time (94%!!!) is consumed in line 1702 of class.tx_indexedsearch.php
$str = ereg_replace(‘[[:space:]]+’,’ ‘,$str);
and Alex from TUG Austria proposed using
$str = preg_replace(‘/\s\s+/’, ‘ ‘, $str);
instead, which works fine with me.
hth
Paul
(issue imported from #M1464)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.