Project

General

Profile

Actions

Bug #14978

closed

Search Result Rendering is very slow, when showing large embedded Dokuments (pdf)

Added by Paul Garstenauer almost 19 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2005-09-19
Due date:
% Done:

0%

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

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)

Actions #1

Updated by Michael Stucki almost 19 years ago

Fixed in CVS.

Actions

Also available in: Atom PDF