<div dir="ltr"><div dir="ltr"><div>Hi Nasser,</div><div><br></div><div><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Yes, I did. This was in my first email:<br>
<br>
WSL is little faster as you see, by about 30%, but both still<br>
slow compared to lualatex.<br>
<br></blockquote><div><br></div><div>Ah, I forgot :)</div><div> </div><div>Anyway, TeX4ht will always be much slower than normal LaTeX because it needs to load all .4ht files. It gets slower with every package you use. Processing of the document contents shouldn't be much slower, but as you use MathJax and large math environments, it can be slower because of the l3regex post-processing of math. And of course, the compilation can be executed multiple times, so all of this multiplies.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
It is also possible that tex4ht is not optimised for windows like<br>
lualatex is?<br>
<br></blockquote><div><br></div><div>TeX4ht depends on loading of lot of files, so this can be an issue. One problem is that files that fill configuration hooks, like html4.4ht, are loaded several times. For each package, we need to load them again. <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
But tex4ht is really slow for large files. This is a big problem<br>
and I wish someone could find out where this slowness comes from. My<br>
guess is that it is from dvilualatex because when make4ht is running<br>
I see this most of the time in output of top command on linux.<br>
<br></blockquote><div><br></div><div>This is why I said to take a look at the debug output. You will see if most of the time is spent loading .4ht files or processing pages.</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I will be happy to make a zip file of the above file with everything<br>
needed to compile it if someone wants to try themslefs. This file<br>
has some math and some images. Nothing special. This is link to the<br>
actual result if you like to see it<br></blockquote><div><br></div><div>Yes, we can try it.</div><div><br></div><div>Best,</div><div>Michal <br></div></div></div>