I know this has been brought up before, but is it ...
# development
c
I know this has been brought up before, but is it expected to take minutes to recompile the rust engine after just a small change to single file? (like rule_graph/src/builder.rs for instance)
h
Rust compilation can be quite slow, especially the linking stage. Use
MODE=debug
when you're iterating on Rust to make it much faster. Also
./cargo check
The newest Rust release added support for custom "profiles" like release vs. devel etc. I still want to experiment with that so that we can make Rust compilation less painful for Python devs using
MODE=debug
is great when iterating on Rust, but the binary is too slow to be useful when iterating on Python. I think there's a middle ground we can have for Python development
c
OK, cool. I’m not doing much on the rust side, atm, so no biggie.. but it strikes me as a pain point, if I were to spend considerable amount on it..
h
doing rust dev with
MODE=debug
+
./cargo check
should be pretty zippy. And we can't improve that much more ourselves other than Rust itself getting faster it's Python devs waiting for Rust changes that frustrates me
w
yea, both
./cargo check
and
MODE=debug
are really important while iterating on the rust code.