Hi Shiv,

ConTeXt’s project structure has many benefits. One is speed. See 
https://wiki.contextgarden.net/Project_structure.

My books and long papers are products, each containing many components 
(chapters or sections). When I’m working, I have both the product and a 
component open. I frequently typeset the component as I’m working. This is very 
quick. I only typeset the entire product if I intend print or send it, or when 
I need to check some product-wide element like references. Components can be 
nested, so take this approach to whatever extreme you desire.

You can also use buffers if there are specific parts of your book (like 
diagrams) that demand significant processing. Buffers can save the typeset 
version of the contents. These will only be typeset again if you change the 
buffer contents (or if you are typesetting with a different version of 
ConTeXt.) See https://wiki.contextgarden.net/Command/typesetbuffer

My biggest book is about 200 pages. It takes 4 minutes to fully typeset on an 
M1 Mac. (I saw this time after downloading a new ConTeXt version.) This is 
mostly due to the 100+ complex TikZ diagrams. However, all of those diagrams 
are buffered, and when I’m working I only typeset the component. A typical 
chapter typesets in 1.6 seconds if I haven’t changed the diagrams. (I just did 
one to check.) That’s fast enough for me.

Hope that helps,
Gavin


> On Jan 18, 2024, at 10:24 AM, Shiv Shankar Dayal 
> <shivshankar.da...@gmail.com> wrote:
> 
> I can process TeXBook in almost an instant using PDFTeX which is about 450+ 
> pages but my math book takes around 30 seconds averaging ~40 pages/second.
> 
> Why LuaMetaTeX is so slow? How can I speed it up?
> -- 
> Respect,
> Shiv Shankar Dayal
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to