I have a project of 15 LyX files and one common Tex include file. The complete (master) document takes between 70 and 75 seconds.
If I just compile the most complicated child document it takes 20 seconds. The least complicated document (a placeholder of one page without any images or references) takes 12 second. All of course in LuaLaTeX which is much slower than PDFLaTeX. I am finding that it doesn't make that much difference. I am quite sure that the references don't make much of a difference. However, if I was doing a lot of complicated equation stuff and the waiting were really to bother me, I would devise a file which has the same formatting as the master document (by way of a tex include file) and design the equation in that file, akin to a Minimal Working Example. I am sure that would compile quickly, and once the equations looks right, just cut and paste into the proper document. What would be very interesting is to compile a LaTeX benchmark document on the computer you are using. https://www.complang.tuwien.ac.at/anton/latex-bench/ gives me on MacOs 10.14.4 MacBook 12", 2017, 16GB, 1.4 GHz Intel Core i7 pdflatex: 0m0.844s lualatex: 0m2.974s MacPro, Late 2013, 48 GB, 3.5 Ghz 6core Xeon E5 pdflatex: 0m0.526s lualatex: 0m2.312s iMac, Late 2015, 32GB, 3.3 GHz, Intel Core i5 pdflatex: 0m0.513s lualatex: 0m1.866s and on Ubuntu 18.04.2 LTS Proline 2011, 2GB, 2.80GHz, Pentium Dual-Core pdflatex: 0m0.718s lualatex: 0m3.404s el On 2019-04-21 17:47 , Daniel wrote: > On 21/04/2019 16:44, t...@wescottdesign.com wrote: >> Can you identify why it takes so long? >> >> Are you splitting it up by chapter? I would certainly expect that a >> per-chapter rendering would take less time (at least per chapter), >> unless the document contains a lot of cross-references. > > I have a lot of cross-references indeed. > >> Usually the reason I need to do frequent document compiles is to make >> sure I'm getting my equations right -- if you could configure Lyx to >> not compile the references (or whatever it is that is slow and that >> you don't need on an immediate basis) when you build per-chapter, >> then perhaps your speed will go up? > > Yes, that sounds worth trying. Any idea how LyX could be configured > that way much appreciated. > > Daniel > > >