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:
  Show dependency tree
 
Reported: 2010-09-18 19:02 UTC by Jean-François Fortin Tam
Modified: 2011-03-03 18:02 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.