Skip to content

Commit

Permalink
Enable optimization in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 14, 2024
1 parent a7c82bd commit d3b814c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
12 changes: 12 additions & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ itertools = "0.13.0"
num-traits = "0.2.19"
rstest = "0.21.0"
seq-macro = "0.3.5"

[profile.dev.package."*"]
# Set the default for dependencies in Development mode.
opt-level = 3
debug = true
lto = true

[profile.dev]
# Turn on a small amount of optimisation in Development mode.
opt-level = 1
debug = true
lto = "thin"
1 change: 0 additions & 1 deletion rust/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
BLUE=\033[0;34m
NC=\033[0m # No Color
RUSTFLAGS?="-Copt-level=2"

.PHONY: help
help:
Expand Down
2 changes: 1 addition & 1 deletion rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn get_problem<'b>(n: usize) -> ProblemRef<'b> {
20 => ( &20, p0020::p0020, false),
22 => ( &22, p0022::p0022, false),
24 => ( &24, p0024::p0024, false),
27 => ( &27, p0027::p0027, true),
27 => ( &27, p0027::p0027, false),
34 => ( &34, p0034::p0034, false),
69 => ( &69, p0069::p0069, false),
76 => ( &76, p0076::p0076, false),
Expand Down

0 comments on commit d3b814c

Please sign in to comment.