Skip to content

Commit

Permalink
perf(url): build with opt-level 3 (denoland#11779)
Browse files Browse the repository at this point in the history
A ~25% improvement: `~1950ns/call` => `~1500ns/call`
  • Loading branch information
AaronO committed Aug 19, 2021
1 parent 9105104 commit 4f322da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ opt-level = 3
opt-level = 3
[profile.bench.package.serde]
opt-level = 3
[profile.bench.package.deno_url]
opt-level = 3
[profile.bench.package.url]
opt-level = 3

# NB: the `bench` and `release` profiles must remain EXACTLY the same.
[profile.release.package.rand]
Expand Down Expand Up @@ -104,3 +108,7 @@ opt-level = 3
opt-level = 3
[profile.release.package.serde]
opt-level = 3
[profile.release.package.deno_url]
opt-level = 3
[profile.release.package.url]
opt-level = 3

0 comments on commit 4f322da

Please sign in to comment.