I get bad incremental compile time (up to 7 seconds) in a document with a lot of Cetz pictures imported like this:
#figure()[#include "pictures\sis_transitorio_rc_graph_v.typ"]
and the file imported is like this:
#import "@preview/cetz:0.1.1": canvas, plot, draw #set text(size: 20pt) #canvas(length: 1cm, { draw.scale(2) draw.set-style(mark: (fill: black)) plot.plot(size: (10, 4.5), axis-style: "school-book", y-tick-step: none, x-tick-step: none, x-ticks: (0, (5, $tau$), (25, [$5 tau$]),), y-ticks: ((0.632, $0.632 dot V_C^f$), (1, $V_C^f$),), x-label: $t$, y-label: $v_C$, y-max: 1.1, { plot.add(style: (stroke: (paint: red, thickness: 2pt)), domain: (0, 30), x => 1 - calc.pow(calc.e, -x/5)) plot.add(style: (stroke: (paint: red, thickness: 2pt)), domain: (-5, 0), x => 0) plot.add(style: (stroke: (dash: "dashed")), domain: (0, 30), x => 1) plot.add(style: (stroke: (dash: "dashed")), domain: (0, 5), x => 0.632) plot.add(style: (stroke: (dash: "dashed")), domain: (0, 30), ((25,0), (25,1))) plot.add(style: (stroke: (dash: "dashed")), domain: (0, 30), ((5,0), (5,0.632))) }) })
Replacing the
#figure()[#include "pictures\sis_transitorio_rc_graph_v.typ"]
with box() get again 500ms of compile time. I thought that the included files where cached, but this is not the case. Any advice? Thanks a lot!!