After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 630012 - removing pages in big documents is really slow and hangs the GUI
removing pages in big documents is really slow and hangs the GUI
Status: RESOLVED FIXED
Product: pdfmod
Classification: Other
Component: general
0.8.x
Other Linux
: Normal major
: ---
Assigned To: pdfmod-maint
pdfmod-maint
Depends on:
Blocks:
 
 
Reported: 2010-09-18 19:02 UTC by Jean-François Fortin Tam
Modified: 2011-03-03 18:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2010-09-18 19:02:03 UTC
Take a PDF with many pages (let's say 900), then try to remove the last 800 pages or so. PDFMod will max out the CPU (in my case, two of my cores) for a really long time while pdfmod's UI hangs.

I know this isn't the optimal way (I guess you're supposed to "extract" pages), but surely this is a symptom of something that can be optimized.

Version 0.8.3.
Comment 1 Gabriel Burt 2010-09-18 19:19:30 UTC
I was just working on this code the other day and found the problem: we re-save the PDF after removing each individual page, instead of after removing all of the.  Should have a fix for this soon.  Thanks for reporting the bug!
Comment 2 Gabriel Burt 2011-03-03 18:02:48 UTC
Fixed in master