[Poppler-bugs] [Bug 8821] Performance Improvement for TextPage:findText()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 14 00:06:29 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=8821

--- Comment #11 from Johannes Buchner <buchner.johannes at gmx.at> 2010-06-14 00:06:29 PDT ---
(In reply to comment #10)
> It should also be considered that we rebuild the search string (Unicode
> conversion) and the next-array for KMP on every call of TextPage::findText.
> Since it is normally called through all pages, one could save some calculation
> there.
I just realized that there is no easy fix for this since findText is a
operation based on pages, not documents. All in all, the dealing with blocks
and lines is quite clumsy, but I guess there is no other way.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list