From 24a8aa17a7fa95ebce09fac408f4ea415d022328 Mon Sep 17 00:00:00 2001 From: bOli Date: Tue, 10 Dec 2024 07:57:56 +0100 Subject: [PATCH] Slightly optimize test builds, to make them run faster --- 2024/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/2024/Cargo.toml b/2024/Cargo.toml index 03bd151..500a3f8 100644 --- a/2024/Cargo.toml +++ b/2024/Cargo.toml @@ -3,5 +3,12 @@ name = "advent_of_code_2024" version = "0.1.0" edition = "2021" +[profile.test] +# The default optimization level is 3 for release mode builds. +# 0 means disable optimization and is the default for debug mode buids. +# (Setting opt-level=1 for debug builds is a good way of speeding them up a bit.) +# "s" means optimize for size, "z" reduces size even more. +opt-level = 1 + [dependencies] rayon = "1.10.0"