\input gets slower after each \input

Ulrike Fischer news3 at nililand.de
Tue Apr 27 09:38:57 CEST 2021

Am Mon, 26 Apr 2021 20:19:51 -0300 schrieb Phelype Oleinik:

> Dear list,
> I was doing some tests with file reading and I found that \input gets
> a tiny bit slower each time it is used.  Why is that?
> I made a test document that shows this behaviour. 

miktex dies with ! TeX capacity exceeded, sorry [pool size=3208635]
on your example. 

Looking at the stats, one can see that every input adds to pool:

310211 string characters out of 6150784
620211 string characters out of 6150784

miktex has a smaller pool size and so dies earlier. It also seems to
use up more of the pool compared to texlive, for a smaller number of
inputs I got this

1840211 string characters out of 6150784 texlive
2560241 string characters out of 3208635 miktex

Ulrike Fischer 

More information about the tex-live mailing list.