[rust-compiler] Add release profile: fat LTO, one codegen unit, strip… (opens in new tab)
\[rust-compiler\] Add release profile: fat LTO, one codegen unit, strip \(\#36726\) The workspace has no \`\[profile\.release\]\`, so the shipped napi binary \(\`index\.node\`\) is built on stock cargo defaults with the symbol table retained: 11\.2MB on arm64 macOS\. Fat LTO \+ \`codegen-units = 1\` \+ \`strip = true\` lands at 7\.2MB with no runtime cost\. Release builds get slower; debug builds \(\`snap --rust\`, the e2e harness\) are unaffected\. \`profile-rust-port\.ts --release\` overrid...
Read the original article