From f8cc0ae9ae030aca2887dc2a1f57f314181c0a58 Mon Sep 17 00:00:00 2001 From: gennyble Date: Fri, 25 Aug 2023 23:23:45 -0500 Subject: play with compilation profile --- Cargo.toml | 8 +++++++- times.csv | 10 +++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fe0fe57..a1d0021 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,16 @@ repository = "https://github.com/gennyble/whenwasit" camino = "1.1.6" getopts = "0.2.21" +# takes ~250K off the binary +[profile.release] +strip = true +codegen-units = 1 +panic = "abort" +lto = true + # The profile that 'cargo dist' will build with [profile.dist] inherits = "release" -lto = "thin" # Config for 'cargo dist' [workspace.metadata.dist] diff --git a/times.csv b/times.csv index 9011ea4..64a19cd 100644 --- a/times.csv +++ b/times.csv @@ -1,12 +1,12 @@ -,1692916976,1693021142,1693020872 -Cargo.toml,1692916976,1693007199,1693007319 +,1692916976,1693021142,1693021142 +Cargo.toml,1692916976,1693023431,1693023432 .whenwasit-ignore,1692930937,1692937439,1693004271 -times.csv,1693021142,1693021142,1693021142 +times.csv,1693021142,1693023825,1693021144 Cargo.lock,1692916991,1692927476,1692931525 -readme.md,1692917240,1693021126,1693021128 +readme.md,1692917240,1693021126,1693021142 .gitignore,1692916976,1693017172,1693017222 .rustfmt.toml,1692917231,1692917231,1692919305 -pre-commit,1692931609,1693020891,1693020891 +pre-commit,1692931609,1693020891,1693021142 .github,1693005489,1693005489,1693005673 .github/workflows,1693005489,1693005489,1693005674 .github/workflows/release.yml,1693005489,1693007250,1693007319 -- cgit 1.4.1-3-g733a5