<div dir="ltr"><div class="gmail_extra">On Sat, Mar 26, 2016 at 3:23 AM, Nasser M. Abbasi <span dir="ltr"><<a href="mailto:nma@12000.org" target="_blank">nma@12000.org</a>></span> wrote:<br><br><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51)">​[...]​<br><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For example, for one file, using Vbox, it took 14 hrs<br>
for make4ht to compile the file to html. On cygwin, it took<br>
little less than than. About 10 hrs. This is on windows 7, 64 bit<br>
16 GB ram, fast intel i7-3930k CPU.<br></blockquote><div><br><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51);display:inline">​That is terrible! But, it contradicts with my own experience. At work, we do large documents (on an average 300 pages long, 800-1000 bibliographic items, 500 to 800 equations, very complex math, large number of figures, double column output) on a daily basis, but it takes a few seconds to generate Elsevier XML output. Recently, another article with 350 pages, ~70 figures, four or five very long tables each spanning several pages, 350 bib items, several hundred cross references, but very few math, took only 12 secs for three runs of TeX4ht to generate NLM XML output on a server where at least 50 users are working simultaneously using same resources. The only documents that take, say, 60 secs or a bit more time are documents with atomic and nuclear data tables, each table running to 200 pages typically!  Otherwise, tex4ht run is a breeze in my experience that too on a server shared by at least forty to fifty users at a time.<br><br>[...]<br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51);display:inline">  ​</div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But the issue is, pdflatex and lualatex take about 5 minutes<br>
on the same file to compile it to pdf !<br>
<br>
I can understand converting to HTML will take more time,<br>
since each equation is converted to svg image, </blockquote><div><br><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51)">​on the fly? Why don't you write out the math in a file and process separately to generate the svg images in one go?​ <br><br>[...]<br></div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It also seems tex4ht has more than one pass. As I see it<br>
generating these sequence of numbers  more than one time.<br></blockquote><div><br><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51);display:inline">​tex4ht needs three passes for fixing cross links and multicolumns in tables.<br>​</div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I can make a zip file with typical large latex file<br>
with all the images it uses and my .cfg and main.mk4<br>
and the command I used to compile the latex file if<br>
any one wants to confirm this problem. Would this be ok?<br></blockquote><div><br><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51);display:inline">​I would love to debug your problem. Please do send me. If it is too large the archive, kindly put at some location and provide me the URL.<br>​</div> <br><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51)">​[...]<br>​</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Finally, is there a document that describes the passes/process<br>
that tex4ht uses to compile to HTML at some high level? Like block<br>
diagram, or such. I am not able to find such design document.</blockquote><br><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51)">​A schematic diagram of a tex4ht run namely tex4ht.pdf is attached to this mail. Hope this might help.​</div><br><div class="gmail_default" style="font-family:monospace,monospace;font-size:x-small;color:rgb(51,51,51)">​Best regards​</div><br></div>-- <br><div class="gmail_signature">Radhakrishnan<br><a href="https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1" target="_blank">River Valley</a><br><br></div>
</div></div>