Bug 49409 - Slow rendering of PDFs from archive.org
Summary: Slow rendering of PDFs from archive.org
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-02 18:33 UTC by mathieu.g.p
Modified: 2012-05-13 07:53 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description mathieu.g.p 2012-05-02 18:33:37 UTC
Hi,

Carlos Garcia Campos of GNOME team (carlosgc@gnome.org), suggested I file a bug report here instead. The original bug report is here:

https://bugzilla.gnome.org/show_bug.cgi?id=675081

My original post:

----
You may already be aware of this, but the rendering speed is exceptionally slow
with documents from Internet Archive:

http://archive.org/details/lifewritingsofth01pain

This contrasts sharply with most other PDFs, including some pretty high-rez
ones, which render either really fast or acceptably fast with Evince.

I think the problem is not specific to any version of Evince. I am using
version 3.4 on Ubuntu 12.04, but I have been experiencing this issue since the
first version of Evince that became default with GNOME on Ubuntu. I always
expected this would go away in the next version, assuming that since speed was
generally good, this was just of problem of "compatibility" with certain PDF
(possibly buggy or non-standard) generators.

The Properties box of Evince tells us that Internet Archive PDFs are:

- Recoded by LuraDocument PDF v2.28
- PDF version 1.5
- Optimized

I think there must be something in those PDFs that is not handled correctly by
Evince.
----
Comment 1 Albert Astals Cid 2012-05-10 10:50:54 UTC
Define "slow". Each of the pages renders under 1 second here.
Comment 2 mathieu.g.p 2012-05-10 17:43:15 UTC
(In reply to comment #1)
> Define "slow". Each of the pages renders under 1 second here.

By "slow" I mean that each page renders in 5 to 10 seconds here.

I am noticing something now: rendering "A Yankee in Canada" generated by LuraDocument PDF v2.16 is noticeably faster than rendering the same document generated by LuraDocument PDF v2.28.

A copy of the book generated by v2.28 can be downloaded from here:

http://archive.org/download/yankeeincanada00thorrich/yankeeincanada00thorrich.pdf

I have attempted to attach to this bug report a copy of the book generated by v2.16, but I was eventually presented with the follow error message:

"The file you are trying to attach is 20285 kilobytes (KB) in size. Attachments cannot be more than 3000 KB. We recommend that you store your attachment elsewhere and then insert the URL to it in a comment, or in the URL field for this bug. Alternately, if your attachment is an image, you could convert it to a compressible format like JPG or PNG and try again."

...so here it is:

http://www.republiquelibre.org/yankeeincanada00thorrich.pdf

Please let me know once you have downloaded a copy so I can remove the file from server.

Best Regards,

Mathieu GP
Comment 3 Albert Astals Cid 2012-05-13 05:32:48 UTC
Both of those still render under a second here. I'm marked this as fixed, please reopen if you upgrade to poppler 0.20 and still have the problem.
Comment 4 James Cloos 2012-05-13 07:53:03 UTC
The difference between the old and new versions of LuraDocument is that
the old version encoded the images as DCT (jpeg) whereas the new version
uses JPX (jpeg2000).

Your jpx library must be significantly slower than your jpeg library at
decoding images.


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.