Skip to content

Commit 3f6c130

Browse files
claudebranchseer
authored andcommitted
Revert insta/similar opt-level — compilation overhead outweighs gains
The opt-level=3 for insta/similar adds recompilation time that exceeds the snapshot diffing speedup. Plain debug builds with Rust vtt are already the fastest configuration. https://claude.ai/code/session_01MM41gBUbWHBiX8Skve91rG
1 parent 72d1ff1 commit 3f6c130

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,6 @@ ignored = [
167167
# and we don't rely on it for debugging that much.
168168
debug = false
169169

170-
# Optimize snapshot testing dependencies in dev/test builds.
171-
# Snapshot diffing (insta + similar) is CPU-intensive; optimizing them
172-
# speeds up test runs without the compile-time cost of a full release build.
173-
[profile.dev.package]
174-
insta.opt-level = 3
175-
similar.opt-level = 3
176-
177170
[profile.release]
178171
# Configurations explicitly listed here for clarity.
179172
# Using the best options for performance.

0 commit comments

Comments
 (0)