• Rust compiler's insane memory consumption

    From kalevi@kalevi@kolttonen.fi (Kalevi Kolttonen) to comp.unix.programmer on Sat Jan 18 20:16:32 2025
    From Newsgroup: comp.unix.programmer

    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
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From John McCue@jmccue@magnetar.jmcunx.com to comp.unix.programmer on Sun Jan 19 19:10:36 2025
    From Newsgroup: comp.unix.programmer

    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
    --- Synchronet 3.21d-Linux NewsLink 1.2