Deutsch English Français Italiano |
<vmh270$14202$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: kalevi@kolttonen.fi (Kalevi Kolttonen) Newsgroups: comp.unix.programmer Subject: Rust compiler's insane memory consumption Date: Sat, 18 Jan 2025 20:16:32 -0000 (UTC) Organization: A noiseless patient Spider Lines: 29 Message-ID: <vmh270$14202$1@dont-email.me> Injection-Date: Sat, 18 Jan 2025 21:16:33 +0100 (CET) Injection-Info: dont-email.me; posting-host="c74d1b2c68f519909ac1af1bbd0264f7"; logging-data="1181698"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gigTGVxdqqVwY4ELjRrC86Tsjk2i3QLQ=" User-Agent: tin/2.6.4-20241224 ("Helmsdale") (Linux/6.12.8-200.fc41.x86_64 (x86_64)) Cancel-Lock: sha1:avKFBbrmVeDd+BGRuNULBgP5To8= Bytes: 1617 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