[Poppler-bugs] [Bug 106135] Pathological case demonstrating massive slowdown

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 19 23:27:41 UTC 2018


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

--- Comment #2 from Albert Astals Cid <aacid at kde.org> ---
So there's two possible patches i came to think

a) Don't parse all objects in an ObjectStream
b) Increase the number of cached ObjectStream

Using a) in this particular pdf, time goes from 40s to 10s on my machine (still
more than the 3s the non compressed pdf)

Using b) it goes to 3s, but at the expense of using more memory (the 50 in
there is a random number would obviously need improvement)


And about a) i'm not even sure it's an improvement in all cases since here it
only helps because for most of the ObjectStream we just create it and then use
one object instead all of them, if we used them all, it'd be slower.

So i guess the ideal would be checking how much more memory doing b) means and
probably go with it?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180419/fcd688d3/attachment.html>


More information about the Poppler-bugs mailing list