blob: 499eeb9d2696982a775a3f00f5c0bbfdd4bddc59 (
plain) (
tree)
|
|
# Performance
## Slow Debug Recompilations
If you experience slow compile times when iterating with lots of templates,
you can compile Askama's derive macros with a higher optimization level.
This can speed up recompilation times dramatically.
Add the following to `Cargo.toml` or `.cargo/config.toml`:
```rust
[profile.dev.package.askama_derive]
opt-level = 3
```
This may affect clean compile times in debug mode, but incremental compiles
will be faster.
|