diff --git a/Cargo.toml b/Cargo.toml index 8a8adec308..612e8ed455 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -270,7 +270,8 @@ opt-level = 0 [profile.release] lto = "thin" -codegen-units = 1 +# Give LLVM room to compile in parallel without dropping ThinLTO. +codegen-units = 4 # The browser build (apps/photocraft-web, `data-cargo-profile` in its index.html). Hosts cap the # size of a single file (Cloudflare Pages/Workers: 25 MiB), and the wasm is downloaded on every