[luatex] runtime

luigi scarso luigi.scarso at gmail.com
Thu Feb 24 23:56:16 CET 2022


On Thu, Feb 24, 2022 at 10:23 PM Herbert Voss <Herbert.Voss at fu-berlin.de>
wrote:

> Am 24.02.22 um 22:09 schrieb luigi scarso:
>
> > >     I am running lualatex with package pdfpages to insert
> >
> >     >     970 pages of another document:
> >     >
> >     >     It takes a lot of time:
> >     >
> >     >     real    4m31.530s
> >     >     user    3m30.000s
> >     >     sys     0m58.771
> >     >
> >     >
> >     >     running it with pdflatex:
> >     >
> >     >     real    0m27.802s
> >     >     user    0m24.902s
> >     >     sys     0m2.028s
> >     >
> >     >
> >     > Can you test with an equivalent plain luatex file ?
> >
>
>
> No change with luatex:
>
> real    4m19.251s
> user    3m14.071s
> sys     0m57.730s
>
> \outputmode=1
> \edef\pdfcompresslevel {\pdfvariable compresslevel}
> \edef\pdfminorversion{\pdfvariable minorversion}
>
> \let\pdfximage\saveimageresource
> \let\pdfrefximage\useimageresource
> \let\pdflastximage\lastsavedimageresourceindex
>
> \pdfminorversion=7
> \pdfcompresslevel=0
>
> \topskip0pt
>
> \newcount\pp \pp=1
> \loop
>    \pdfximage width \hsize height \vsize page \the\pp
> {target/buch.pdf}\relax
>    \hbox{\pdfrefximage\pdflastximage}\relax\eject
>    \advance\pp by 1
>    \ifnum\the\pp < 950
> \repeat
>
> \bye
>
>
> Herbert
>

hm
what about context test.tex
%%%
%% test.tex
\starttext
\dorecurse{950}{\externalfigure[target/buch.pdf][page=\recurselevel]}
\stoptext

here I have real 0m12.763s for  3 runs (latest luatex with -g0
optimization).


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20220224/cd3e3c9c/attachment.html>


More information about the luatex mailing list.