Skip to content

Commit

Permalink
perf(cli,serverless): tweak release build flags (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiiBz committed May 6, 2023
1 parent a22eaff commit 3101c9e
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .changeset/eleven-plants-flow.md
@@ -0,0 +1,6 @@
---
'@lagon/cli': patch
'@lagon/serverless': patch
---

Tweak release build flags to improve performance
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Expand Up @@ -5,3 +5,8 @@ members = [
"crates/cli",
"crates/wpt-runner",
]

[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ colored = "2.0.0"
dirs = "5.0.1"
webbrowser = "0.8.9"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync"] }
hyper = { version = "0.14", features = ["client", "server", "http1", "runtime", "stream"] }
hyper = { version = "0.14.26", features = ["client", "server", "http1", "runtime", "stream"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
walkdir = "2.3.3"
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime_http/Cargo.toml
Expand Up @@ -5,6 +5,6 @@ edition = "2021"

[dependencies]
v8 = "0.70.0"
hyper = { version = "0.14", features = ["client", "http1", "http2", "tcp"] }
hyper = { version = "0.14.26", features = ["client", "http1", "http2", "tcp"] }
anyhow = "1.0.71"
lagon-runtime-v8-utils = { path = "../runtime_v8_utils" }
2 changes: 1 addition & 1 deletion crates/runtime_isolate/Cargo.toml
Expand Up @@ -7,7 +7,7 @@ edition = "2021"
v8 = "0.70.0"
tokio = { version = "1", features = ["rt-multi-thread"] }
futures = "0.3.28"
hyper = { version = "0.14", features = ["client"] }
hyper = { version = "0.14.26", features = ["client"] }
hyper-tls = { version = "0.5.0", features = ["vendored"] }
flume = "0.10.14"
anyhow = "1.0.71"
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime_utils/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
[dependencies]
anyhow = "1.0.71"
lagon-runtime-http = { path = "../runtime_http" }
hyper = { version = "0.14", features = ["stream"] }
hyper = { version = "0.14.26", features = ["stream"] }
flume = "0.10.14"
tokio = { version = "1", features = ["rt-multi-thread"] }

Expand Down
2 changes: 1 addition & 1 deletion crates/serverless/Cargo.toml
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
hyper = { version = "0.14", features = ["server", "http1", "runtime", "stream"] }
hyper = { version = "0.14.26", features = ["server", "http1", "runtime", "stream"] }
tokio = { version = "1", features = ["rt-multi-thread", "sync", "time", "macros", "signal"] }
tokio-util = { version = "0.7.8", features = ["rt"] }
lagon-runtime = { path = "../runtime" }
Expand Down

0 comments on commit 3101c9e

Please sign in to comment.