From 5d6d6836bb181c7c8624d8635fb15af9a9425bfd Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 13 Aug 2021 13:38:13 +0530 Subject: [PATCH] perf(wpt/crypto): optimize num-bigint-dig for debug builds (#11681) --- Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index ce7bc47e67..6536183cc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -39,6 +39,11 @@ incremental = true lto = true opt-level = 'z' # Optimize for size +# Key generation is too slow on `debug` +# +[profile.dev.package.num-bigint-dig] +opt-level = 3 + # Optimize these packages for performance. # NB: the `bench` and `release` profiles must remain EXACTLY the same. [profile.bench.package.rand] @@ -61,6 +66,8 @@ opt-level = 3 opt-level = 3 [profile.bench.package.deno_net] opt-level = 3 +[profile.bench.package.num-bigint-dig] +opt-level = 3 [profile.bench.package.rusty_v8] opt-level = 3 [profile.bench.package.serde_v8] @@ -89,6 +96,8 @@ opt-level = 3 opt-level = 3 [profile.release.package.deno_net] opt-level = 3 +[profile.release.package.num-bigint-dig] +opt-level = 3 [profile.release.package.rusty_v8] opt-level = 3 [profile.release.package.serde_v8]