Follow-up Comment #2, bug #67602 (group groff): Attaching a much smaller reproducer, under 1 megabyte.
I simply cut Deri's original in (approximately) half until the `pdfmom`
runtime was not savagely long (multiple minutes), but a difference was still
perceptible when defeating the linear search for the bookmark contents
It's easy to compare performance involving bookmark lookups vs. not, simply by
using the `-rU0` flag vs. not.
That does assume that there is only a constant-time overhead per link for
actually writing out the device extension command, which I believe to be the
case having seen (and, in the cases of _man_(7) and _mdoc_(7), having written)
the code.
In other words, any performance hit from `-rU1` (the default) should be almost
completely attributable to the linear search for the bookmark contents.
$ time pdfmom --roff -Tpdf -man -petk
./ATTIC/linux-man-pages-book-deri-cut-3.groff >
./ATTIC/linux-man-pages-book-deri-cut-3.pdf
troff:iconv.1:193: warning: special character 'u03B1' not defined
troff:iconv.1:193: warning: special character 'u0062_0307' not defined
real 0m6.687s
user 0m10.301s
sys 0m0.092s
$ time pdfmom --roff -Tpdf -rU0 -man -petk
./ATTIC/linux-man-pages-book-deri-cut-3.groff >
./ATTIC/linux-man-pages-book-deri-cut-3-rU0.pdf
troff:iconv.1:193: warning: special character 'u03B1' not defined
troff:iconv.1:193: warning: special character 'u0062_0307' not defined
real 0m3.711s
user 0m4.781s
sys 0m0.053s
(file #57718)
_______________________________________________________
Additional Item Attachment:
Name: linux-man-pages-book-deri-cut-3.groff Size: 904KiB
<https://file.savannah.gnu.org/file/linux-man-pages-book-deri-cut-3.groff?file_id=57718>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-67e8243f405dc86e3d2806ae92f56702db23371d.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67602>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
