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

Reply via email to