Bug 21562 - Performance Issues with PDF File
Summary: Performance Issues with PDF File
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-05 04:30 UTC by David Bridson
Modified: 2009-06-07 06:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description David Bridson 2009-05-05 04:30:15 UTC
Poppler has performance issues with the following PDF file:

http://www.enrc.com/files/Annual_Report_2008.pdf

On an AMD Athlon 64 X2 5200, the file takes 23 seconds to load in both Evince and Okular and maxes out the CPU. On a laptop with a slower Core 2 Duo chip, the same file loads in Adobe Reader in a little under a second.
Comment 1 David Bridson 2009-06-05 04:47:16 UTC
I found a new PDF which exhibits the same problem but even worse:

http://www.investis.com/bby/investors/reports/2008rep/anreview08/anreveview2008.pdf

This PDF takes NINETY-EIGHT seconds from opening to display the first page!
Comment 2 Albert Astals Cid 2009-06-06 03:32:16 UTC
I can confirm the slowlyness of the first pdf, it seems we are too slow doing PS operations to calculate color, but the second is acceptably fast here (3 seconds per page or so)
Comment 3 David Bridson 2009-06-06 04:05:17 UTC
(In reply to comment #2)
> I can confirm the slowlyness of the first pdf, it seems we are too slow doing
> PS operations to calculate color, but the second is acceptably fast here (3
> seconds per page or so)

Perhaps the issue with the second PDF may be resolved already. I received a poppler update overnight and now the second PDF takes 8 seconds to load, a significant improvement. But, the first PDF still loads very slowly.
Comment 4 Albert Astals Cid 2009-06-07 04:49:59 UTC
I've made some optimizations to PS operations to calculate color and now it takes 6 seconds instead of 24 on my machine.

I know Adobe is still faster but if that speedup is enough for you i'd like to close the bug.
Comment 5 David Bridson 2009-06-07 06:35:10 UTC
(In reply to comment #4)
> I've made some optimizations to PS operations to calculate color and now it
> takes 6 seconds instead of 24 on my machine.
> 
> I know Adobe is still faster but if that speedup is enough for you i'd like to
> close the bug.

Thanks for your work on this, Albert - that's quite a significant improvement! Six seconds sounds very reasonable, and certainly usable. Thanks a lot!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.