GitHub

[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
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help