No measurable performance improvement with native builds over LTO release builds.
Some checks failed
rustfmt Build rustfmt has succeeded
rust-foreign-document-test Build rust-foreign-document-test has failed
rust-build Build rust-build has succeeded
rust-test Build rust-test has succeeded

Leaving the code for this commented out because it involved an unstable cargo feature without showing any benefit. I would like to revisit this later.
This commit is contained in:
Tom Alexander 2023-10-16 15:20:42 -04:00
parent 9f1671658d
commit 547fc40dbe
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,5 @@
# cargo-features = ["profile-rustflags"]
[package]
name = "organic"
version = "0.1.10"
@ -64,6 +66,13 @@ inherits = "release"
lto = true
strip = "symbols"
# Optimized build for local execution.
# [profile.native]
# inherits = "release"
# lto = true
# strip = "symbols"
# rustflags = ["-C", "target-cpu=native"]
# Profile for performance testing with the "perf" tool. Notably keeps debug enabled and does not strip symbols to make reading the perf output easier.
[profile.perf]
inherits = "release"

View File

@ -1,4 +1,3 @@
use nom::multi::many0;
use super::babel_call::babel_call;