Comment by pie_flavor
9 hours ago
I am a longtime Windows user and it brings me absolutely no joy to report that the M4 I am forced to use for work runs the Rust compiler a good bit faster than the big fancy gaming PC I just got with a 9800X3D.
9 hours ago
I am a longtime Windows user and it brings me absolutely no joy to report that the M4 I am forced to use for work runs the Rust compiler a good bit faster than the big fancy gaming PC I just got with a 9800X3D.
Rust literally compiles ~4x faster on WSL than on the Windows command line, on the same hardware, so try that and see. Also set up the mold or wild linker as well as sccache, although sccache is OS agnostic so you can use it on macOS too. Make sure your code is on the WSL side not on /mnt/c which is the Windows side though, that will kill compilation speed.
https://www.reddit.com/r/rust/s/CsEy9bLivK
That has not been my experience at all; I get pretty much the same times on the same machine on Linux and Windows. Something weird has happening to that person. Someone mentioned Defender, and that could certainly be it, as I have it totally disabled (forcibly, by deleting the executable).
At least 10 years ago, some IBM tools I was forced to use worked faster in a linux VM on Windows (through VirtualBox) than on Windows.
I'd wager that's more likely due to Windows than the hardware. Like sure the hardware does play a part in that but its not the whole story or even most of it.
My C++ projects have a python heavy build system attached where the main script that runs to prepare everything and kick off the build, takes significantly longer to run on Windows than Linux on the same hardware.
Afaik a lot of it is ntfs. It’s just so slow with lots of small files. Compare unzipping moderately large source repos on windows vs. POSIX, it’s day and night.
No, it’s not NTFS, it’s the file system filter architecture of the NT kernel.
1 reply →
Just deleting 40,000 files from the node_modules of a modest Javascript project can thoroughly hammer NTFS.
5 replies →
Try adding your working directory to the exclusions for windows defender, or creating a Dev Drive instead in settings (will create a separate partition, or VHD using ReFS and exclude it from Windows defender). Should give it a bit of a boost.
Apple buries this info but the memory bandwidth on the M series is very high. Doubly and triply so for the Pro & Max variants which are insanely high.
Not much in the PC line up comes close and certainly not at the same price point. There's some correlation here between PCs still wanting to use user-upgradable memory which can't work at the higher bandwidths vs Apple integrating it into the cpu package.
They don't bury it. It's literally on the spec page these days. And LPCAMM2 falls somewhere between the base M and Pro CPUs while still being replaceable.
The new MacBook Neo is a less than half the memory bandwidth of the base model MacBook Air.
That's most likely because windows indexes and scans files rustc produces. My linux machines demolish my iMac in rust compilation.
Intel iMac?
M4. To be fair I bought it as a pretty ssh terminal in living room into compute in another room.
You’re running Windows unironically?