#Any tips forPerformance improvements?
13 messages · Page 1 of 1 (latest)
Are you doing clean or incremental compilations, i.e. typst compile or typst watch?
typst compile as each time json files will be different
hmm, yeah. then I think there is not much you can do from your side unfortunately.
Typst could in theory be a bit faster if it was all one process invocation (less font loading etc.), but there is no way to do that atm.
except of course for doing everything in one doc, but that yields problems with heading counters etc.
If I remember correctly, typst watches for jsons, that #read("file.json"), so you can run typst watch, and do something like
cat 1.json > common.json
# wait a bit
mv main.pdf 1.pdf
yeah, maybe you can build something with that.
Ok
instead of just sleeping on compilation, you can watch for .pdf change
Should there be a background process which needs to constannlty running for typst watch?