Edits: 64GB, not 64MB. 32GB is really the minimum recommended
Edits: 64GB, not 64MB. 32GB is really the minimum recommended
I tested with two different machines:
* Linux machine with an AMD Ryzen 9 5950X
* macOS machine with an M1 Max
Each chart is labelled with 'Linux' or 'macOS'.
> If you want to compile a monolithic web application written in Rust within a reasonable amount of time, you need that much top-of-the-line hardware for your work. You're still waiting several minutes to compile, but compile times get even worse with older hardware running debian and mold/lld. CI test/build runs also take a long time to complete.
This is true with C++ as well. The article focused on the build-test development cycle, but you're right that the compile time issue would be worse on older hardware and CI.
And minutes? What are you compiling? How big is your codebase? Are you doing everything in docker or something?
Rustc is slow but I’ve never seen it be that bad. I’ve been working on a rust project for a couple of years, currently sitting at about 40k loc. Incremental debug builds still only take a second or two. Full compiles take about 10 seconds.
No hard numbers, just anecdata.
Edit: now I think about it, the first time I heard the fan on the machine (out of ~3 times in ~2 years) was when I built a Rust project while running Airflow in docker compose under Rosetta emulation, back when one of the Docket images didn’t support arm64
Indeed, 640KB should be more than enough.
The crates you import seem to add the vast majority of compile time stuff like an ORM brings in a lot of code but I still don't see this being an issue. It's so much faster than working on the React app and even that seems fine.
Unless you are working on some absolute mega project like chromium, compile time seems like a minor detail.
IF you have an M1 then sure. But bear in mind that’s 10x faster than the machines that some people are still using.
So, an Apple Newton in a laptop form factor?
The Mac M1 Max the author used is an absolute beast of a machine. I have a M1 Pro (which is not as fast) and it's ridiculously faster (and quieter - it barely needs a fan) than my Linux Dell XPS13 and older Macbook Pro.