Speed of compiling deno from source
Probably a dumb question but when building deno once getting towards the end (
Compiling deno v2.0.0 (/build/source/cli)
) it ends up being stuck on 2 threads, fairly low CPU usage, high memory usage, working a long time. Is that unavoidable, just linking or something, or can I improve things?
(Platform: x86_64 linux but also curious about other platforms)4 Replies
hmm where is the original text I put for this question... am I blind? 👀 I see it in the main #help list...
I managed to copy it just incase others can't see it here:
Probably a dumb question but when building deno once getting towards the end (Compiling deno v2.0.0 (/build/source/cli)) it ends up being stuck on 2 threads, fairly low CPU usage, high memory usage, working a long time.
Is that unavoidable, just linking or something, or can I improve things?
(Platform: x86_64 linux but also curious about other platforms)
Some more background: I have a pretty decent rig tackling this with 32 cores, I get through most of it really quick but hanging at the final phase for a long time means the total build took 11 minutes 13 seconds building deno v2
Yes, it's linking and it takes a very long time. You can expect anywhere from 5 to 20 minutes
Thanks for the reply. I've marked this as solved.
I know the aarch64-darwin build mentions
lld
in the config.toml
rust flags.
Has anyone tried lld
on other platforms or tried mold
or rust-lld
at all?@divy has been using
mold
on linux for good speed ups