Skip to content

Commit 46ac0c9

Browse files
committed
Disable thin lto for dev builds by default in template
When changing something trivial in the hello world project created by `cargo pgx new`, it would take ~20 seconds to compile a dev build of the generated crate on my machine. This seemed way slower than it should be. It turns out that the thin LTO setting greatly inrceases compilation times. By disabling it, compilation time of the crate is only 1 second. As far as I can tell this setting was enabled initially as a workaround for this bug in Rust: rust-lang/rust#50007 Since this bug has been fixed since Rust 1.62, and current stable Rust is version 1.67, this PR removes the workaround.
1 parent 24ad866 commit 46ac0c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

nix/templates/default/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ once_cell = "1.7.2"
2525

2626
[profile.dev]
2727
panic = "unwind"
28-
lto = "thin"
2928

3029
[profile.release]
3130
panic = "unwind"

0 commit comments

Comments
 (0)