[tex4ht] performance of tex4ht on WSL linux vs. VBox linux

Michal Hoftich michal.h21 at gmail.com
Sat Nov 9 10:50:52 CET 2024


Hi Nasser,


make4ht --shell-escape -ulm default -a warning
>          -f html5+join_colors -c nma_mathjax.cfg
>          -e
> /mnt/g/public_html/styles/texmf/tex/latex/tex4ht_build_files/MAIN.mk4
> index.tex
>
>  'mathjax,htm,5,fn-in,notoc*,p-width,charset=utf-8,cut-fullname,nostyle'
> '-cunihtf -utf8'
>
> --Nasser
>

You should use the -m draft option instead of default if you want to speed
up the compilation. This will use only one LaTeX compilation instead of
three. The important thing is to keep the auxilary files between
compilations, to get correct links, tables and other features. Another
thing that can be slow is large math, because we use L3regexes in the
MathJax mode,  so it can be slow if it needs to process large chunks of
content.

You could run the -a debug option and watch the compilation. Does it take a
lot of time in package loading phase? You will see a lot of
(path/to/foo.4ht) in that phase. Or it stops when the document is
processing? You will see [page number] messages at this phase. It can also
stop at make4ht-lib: parse_lg process file: foo.html. Where it takes the
most time?

Best regards,
Michal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex4ht/attachments/20241109/f35afa94/attachment.htm>


More information about the tex4ht mailing list.