tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: texlive install scripts are unbearably slow



> Date: Sun, 4 Sep 2022 08:43:32 +0000
> From: Taylor R Campbell <campbell+netbsd-tech-pkg%mumble.net@localhost>
> 
> >  > I suspect the main problem is that the INSTALL script builds a cache
> >  > that takes O(n) time for n packages, so it takes O(n^2) time overall.
> >  > At least part of it, if not all of it, is mktexlsr (rebuilding output
> >  > of `ls -R') in print/kpathsea/INSTALL.  There might be something
> >  > similar for fonts, or mktexlsr might do that too, not sure.
> 
> It's not print/kpathsea/INSTALL, but rather
> print/kpathsea/files/texmf-install.tmpl (and
> print/kpathsea/files/texmf-deinstall.tmpl).

Also print/tex-texlive-scripts/files/*.tmpl, which run:

- fmtutil-sys
- updmap-sys
- mktexlsr

These can all be batched up, I expect -- at least the part where it
actually runs fmtutil-sys/updmap-sys/mktexlsr to rebuild a cache.


Home | Main Index | Thread Index | Old Index