Dependencies are compiled optimised in dev too
Browse files at this commit07b26bfedda5d0b0382adde0454c6ca200cbb4ebParent: a3051e6- perf
- dependencies are compiled optimised in dev too
1 changed file +8 -0
- Cargo.toml +8 -0
Cargo.tomlmodified+8 -0
| @@ -25,6 +25,14 @@ chacha20poly1305 = "0.10.1" | |||
| 25 | base64 = "0.22.1" | 25 | base64 = "0.22.1" |
| 26 | toml = "1" | 26 | toml = "1" |
| 27 | 27 | ||
| 28 | +# A dev build runs the same spreadsheet reader a release build does, and an | ||
| 29 | +# unoptimised quick-xml walks a wide sheet about twenty times slower — a page | ||
| 30 | +# of a 1,200-column book took two seconds to open on `cargo run`. Dependencies | ||
| 31 | +# are compiled optimised even in dev; the workspace's own crates stay | ||
| 32 | +# unoptimised, so an edit still rebuilds in a second. | ||
| 33 | +[profile.dev.package."*"] | ||
| 34 | +opt-level = 3 | ||
| 35 | + | ||
| 28 | [profile.release] | 36 | [profile.release] |
| 29 | codegen-units = 1 | 37 | codegen-units = 1 |
| 30 | lto = true | 38 | lto = true |