• Rust compiler's insane memory consumption

    From Kalevi Kolttonen@21:1/5 to All on Sat Jan 18 20:16:32 2025
    Hello!

    Maybe this question would be more suitable
    on comp.compilers, but I will give it a go
    here.

    A while back I tried to compile Thunderbird on
    Fedora 41, having a laptop with 16GB of RAM.
    Apart from one strange strike of luck, all of
    my compilation attempts failed miserably.

    The reason was that rustc, a Rust compiler,
    hogged nearly 16GB of memory. Any compiler
    experts around? How is it possible that
    a Rust compiler can require that much memory?

    I have a rough understanding of the phases
    of how C compilers work, but I know practically
    nothing of Rust. For the record, this is the
    Rust compiler that I used:

    ~ $ rpm -qi rust
    Name : rust
    Version : 1.83.0
    Release : 1.fc41
    Architecture: x86_64

    br,
    KK

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John McCue@21:1/5 to Kalevi Kolttonen on Sun Jan 19 19:10:36 2025
    Kalevi Kolttonen <kalevi@kolttonen.fi> wrote:
    Hello!

    Maybe this question would be more suitable
    on comp.compilers, but I will give it a go
    here.

    There is also alt.comp.software.thunderbird
    and it is rather active.

    <snip>

    --
    [t]csh(1) - "An elegant shell, for a more... civilized age."
    - Paraphrasing Star Wars

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)