diff --git a/Cargo.toml b/Cargo.toml index add68c60..a1cc6a01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -95,3 +95,19 @@ arrow-schema = "58" surrealdb-ast = { git = "https://github.com/AdaWorldAPI/surrealdb", branch = "main" } surrealdb-parser = { git = "https://github.com/AdaWorldAPI/surrealdb", branch = "main" } surrealdb-core = { git = "https://github.com/AdaWorldAPI/surrealdb", branch = "main", default-features = false } + +# Debug info OFF for dev and test builds — the single biggest lever on build +# cost. Measured across this fleet 2026-08-22: 22 GB / ~40 min with debug info +# vs 4.4 GB / ~10 min without, on the same tree. `[profile.test]` inherits from +# `dev`, so this one entry covers `cargo build` and `cargo test` alike. +# +# It belongs in the manifest rather than in each session's environment: carried +# as `CARGO_PROFILE_*` env vars it only helps a session that remembers, and a +# fresh clone or a CI runner gets the expensive build. lance-graph (#962) and +# MedCare-rs already set this default. +# +# Given up: line numbers in panic backtraces. `debug = "line-tables-only"` +# restores them cheaply when a debugging session needs them — a deliberate +# temporary edit, not a reason to keep the default expensive. +[profile.dev] +debug = 0