[gs-regression] local cluster regression mupdf 01cd1e4dfdc6ab53e79d0a9e548415494851b5ea
marcos.woehrmann at artifex.com
marcos.woehrmann at artifex.com
Fri Jun 22 16:17:21 UTC 2012
01cd1e4 Rework pdf_lexbuf to allow for dynamic parsing buffers.
------------------------------------------------------------------------
commit 01cd1e4dfdc6ab53e79d0a9e548415494851b5ea
Author: Robin Watts <robin.watts at artifex.com>
Date: Fri Jun 22 13:26:35 2012 +0100
Rework pdf_lexbuf to allow for dynamic parsing buffers.
Currently pdf_lexbufs use a static scratch buffer for parsing. In
the main case this is 64K in size, but in other cases it can be
just 256 bytes; this causes problems when parsing long strings.
Even the 64K limit is an implementation limit of Acrobat, not an
architectural limit of PDF.
Change here to allow dynamic buffers. This means a slightly more
complex setup and destruction for each buffer, but more importantly
requires correct cleanup on errors. To avoid having to insert
lots more try/catch clauses this commit includes various changes to
the code so we reuse pdf_lexbufs where possible. This keeps the
speed up.
Changed files:
pdf/mupdf-internal.h
pdf/pdf_cmap_parse.c
pdf/pdf_function.c
pdf/pdf_interpret.c
pdf/pdf_lex.c
pdf/pdf_repair.c
pdf/pdf_xref.c
ran 9156 tests in 554 seconds on 11 nodes
No differences in 9156 non-pdfwrite/ps2write tests
No differences in 0 pdfwrite tests
No differences in 0 ps2write tests
More information about the gs-regression
mailing list