From 381c6461721306e6d503a429d55a139ed848269a Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 20 Dec 2024 22:09:07 +0400 Subject: [PATCH] another attempt of optimization (changed nothing) --- .build.sh | 2 +- build_hr.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.build.sh b/.build.sh index d16198c..5bdee2e 100644 --- a/.build.sh +++ b/.build.sh @@ -20,7 +20,7 @@ clone () { # optimizations set_cflags () { export \ - CFLAGS="-O3" CPPFLAGS="-O3" LDFLAGS="-Wl,-O3 -Wl,-S" \ + CFLAGS="-Ofast" CPPFLAGS="-Ofast" LDFLAGS="-Wl,-O3 -Wl,-S" \ RUSTFLAGS="-C target-cpu=native" } diff --git a/build_hr.sh b/build_hr.sh index d5a5ddc..3566134 100755 --- a/build_hr.sh +++ b/build_hr.sh @@ -22,7 +22,8 @@ cargo build \ --bin resolve \ --features dnssec-ring \ --config 'panic="abort"' \ - --config 'lto="fat"' + --config 'lto="fat"' \ + --config 'codegen-units=1' echo echo '==> Done'