[gs-bugs] [Bug 692611] ps2pdf is 40 X slower in gs 9 than gs 8

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Oct 19 04:10:03 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=692611

--- Comment #2 from William Bader <williambader at hotmail.com> 2011-10-19 04:10:00 UTC ---
I put the files on dropbox.

The main problem happened between gs8.33 and gs8.57.
gs9.04 is 50   X slower than gs7.05.
gs8.33 is  3.1 X slower than gs7.05.
gs8.57 is 11   X slower than gs8.33.
gs9.04 is  1.5 X slower than gs8.57.

pdftops times on my laptop (2.2 GHz Core2Duo, 2 GB RAM, 32-bit Fedora 14
Linux):
gs7.05  1.2 min
gs8.14  0.3 min (core dump, no output)
gs8.33  3.7 min
gs8.57 40 min
gs8.71 53 min
gs9.04 60 min

I posted a bzip2-compressed version of the original PS and the generated PDFs.
http://dl.dropbox.com/u/45968874/pcab.ps.bz2
http://dl.dropbox.com/u/45968874/pcab-gs705.pdf
http://dl.dropbox.com/u/45968874/pcab-gs833.pdf
http://dl.dropbox.com/u/45968874/pcab-gs857.pdf
http://dl.dropbox.com/u/45968874/pcab-gs871.pdf
http://dl.dropbox.com/u/45968874/pcab-gs904.pdf

55935529 pcab-gs705.pdf
52781021 pcab-gs833.pdf
52753227 pcab-gs857.pdf
52767560 pcab-gs871.pdf
52902948 pcab-gs904.pdf
111605951 pcab.ps.bz2

I tracked the memory usage with "top" and the size of the generated PDF.
It doesn't look like gs is consuming an excessive amount of memory.
gs9 is the first version that I built with the fonts embedded, which is
probably why it is about 20 MB larger than the other versions.

MB virt / MB res / PDF size in MB / runtime

gs9.04
45 / 19 / 0 / initial
87 / 62 / 6.2 / 2 min
87 / 62 / 7.1 / 5 min
87 / 62 / 7.7 / 7 min
98 / 72 / 12.7 / 23 min
98 / 73 / 16.6 / 38 min
98 / 73 / 19.9 / 50 min
   /    / 52.9 / 60 min

gs8.71
27 / 11 / 0 / initial
69 / 52 / 5.8 / 1 min
69 / 53 / 6.7 / 4 min
78 / 61 / 13.7 / 25 min
78 / 61 / 17.5 / 39 min
   /    / 52.8 / 53 min

gs8.57
14 / 9 / 0 / initial
55 / 49 / 10.0 / 5 min
55 / 49 / 13.9 / 17 min
55 / 50 / 17.1 / 27 min
   /    / 52.7 / 40 min

viewing with gs8.57 reports
**** Warning: Fonts with Subtype = /TrueType should be embedded.
              The following fonts were not embedded:
                     Helvetica
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> GPL Ghostscript 8.57 <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.

gs8.33
12 / 8 / 0 / initial
57 / 51 / 14 / 2 min
57 / 51 / 20 / 3 min
60 / 54 / 52.8 / 3 min 41 seconds

viewing with gs8.33 gets a lot of errors
Substituting .notdef for E
Substituting .notdef for T
Substituting .notdef for H
every page gets
Page 36
**** Warning: Fonts with Subtype = /TrueType should be embedded.
              But Helvetica is not embedded.
Loading Helvetica font from /u1/gnu/gs/fonts.site/Helvetica... 3002580 1627203
4047912 1731257 3 done.
the end gets
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> AFPL Ghostscript BETA RELEASE 8.33 <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.

gs8.14
12 / 9 / 0 / initial
x / core dump at 20 seconds

gs7.05
10 / 6 / 0 / initial
   /  / 55.9 / 1 min 10 sec

poppler pdftops reports similar errors on all of the PDFs.

$ pdftops -v
pdftops version 0.18.0
Copyright 2005-2011 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2004 Glyph & Cog, LLC
$ time pdftops pcab.pdf test.ps
Error (11659380): Unknown operator '�'
Error (11659380): Internal: got 'EI' operator
Error (11659380): Unknown operator '�'
Error (11659380): Internal: got 'EI' operator
real    0m45.520s
user    0m35.338s
sys     0m8.494s

The PS is 220 MB with 36 pages.
On an older server with a 1.6 GHz Pentium 4, 1.5 GB RAM, CentOS 4.9:
ps2pdf with gs 8.54 takes 25 min and produces a 53 MB PDF.
ps2pdf with gs 9.04 is about 1/3 way done after 7 hours.
Ranges of pages take about twice as long with gs 9 than with gs 8.

Distiller 8 on a Mac takes about 20 minutes and produces a 12 MB PDF.

William

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list