Bug 46909 - Poppler::Document::toc() very slow on large files
Summary: Poppler::Document::toc() very slow on large files
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: qt4 frontend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 10:06 UTC by omarhawk
Modified: 2018-08-21 10:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description omarhawk 2012-03-02 10:06:10 UTC
When reading the TOC of large files
(> 100MB size; 10000+ pages)
the function Poppler::Document::toc()
is awfully slow (approx. 10-20 seconds)
while the Adobe Reader opens the same file
in an instant.
Comment 1 Albert Astals Cid 2012-03-02 11:28:49 UTC
We'll need that file
Comment 2 omarhawk 2012-03-02 11:47:28 UTC
It is impossible to send the file
because it contains the documentation
to our proprietary SW.
Comment 3 Albert Astals Cid 2012-03-02 11:51:09 UTC
Without the file, we can't profile the code and we can't check if we've fixed the problem or not, so don't expect a fix to appear anytime soon.
Comment 4 omarhawk 2012-03-04 02:11:13 UTC
I have done some tests with Okular (Win32, KDE v4.8.0, poppler v0.18.1)
displaying files that are available on the net.

1.) Texas Instruments OMAP4460 SoC (~26MB, ~5600 pages)

http://www.ti.com/pdfs/wtbu/OMAP4460_ES1.x_PUBLIC_TRM_vN.zip

2.) TikZ & PGF manual v2.10 (~5MB, ~700 pages)

http://pgf.sf.net/

Both files have noticeably longer loading times compared to
thge Adobe Reader.

My guess is that files are completely scanned during the loading
process. Perhaps this is why my HDD shows a lot activity when
opening the above mentioned large file (>100MB, >10000 pages).

Sorry for the inconvenience but the two files listed above
won't attach to the this bug report.
Comment 5 GitLab Migration User 2018-08-21 10:41:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/325.


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.