From 28df5d18a40a4db18b93cb5da26cbc9544d033fe Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 8 Apr 2020 21:58:39 +0200 Subject: [PATCH] cargo: performance flags in release --- .cargo/config | 2 ++ Cargo.toml | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..ddff440 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[build] +rustflags = ["-C", "target-cpu=native"] diff --git a/Cargo.toml b/Cargo.toml index 9bde527..a82bbca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,7 @@ members = [ "beevee", "pathtracer", ] + +[profile.release] +lto = true +codegen-units = 1