From efc8e4fb28d49b0f96dc92a15ea8342ace0be572 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 9 Oct 2020 19:51:02 +1000 Subject: [PATCH] use a semi-optimized build during development stock dev mode is too slow, but release mode is about 3x slower than this middle ground --- Makefile | 2 +- rspy/Cargo.toml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d99e115ac..89e3dcb60 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ SUBMAKE := $(MAKE) --print-directory .SUFFIXES: BUILDFLAGS := --release --strip -DEVFLAGS := $(BUILDFLAGS) +DEVFLAGS := RUNFLAGS := CHECKABLE_PY := pylib qt CHECKABLE_RS := rslib rspy diff --git a/rspy/Cargo.toml b/rspy/Cargo.toml index d1eec7fc1..5a7735a0f 100644 --- a/rspy/Cargo.toml +++ b/rspy/Cargo.toml @@ -17,3 +17,8 @@ features = ["extension-module"] [lib] name = "ankirspy" crate-type = ["cdylib"] + +[profile.dev] +opt-level = 2 +debug = 0 +codegen-units = 256