News for hackers. Stuff that matters.
Re:"Why is the Rust compiler so slow?" by almostgotcaught on Friday June 27, 2025 @10:47AM (#44397204)
How many LOC is unreal? I'm trying to estimate whether making LLVM compatible with UNITY_BUILD would be worth the effort.

EDIT: i signed up to get access to unreal so take a look at how they do unity builds and turns out they have their own build tool (not CMake) that orchestrates the build. so does anyone know (can someone comment) whether unity builds for them (unreal) means literally one file for literally all project sources files or if it's "higher-granularity" like UNITY_BUILD in CMake (i.e., single file per object).

Re:"Why is the Rust compiler so slow?" by Culonavirus on Friday June 27, 2025 @11:37AM (#44397636)
At least 10M (from what I remember, maybe more now)
Re:"Why is the Rust compiler so slow?" by maccard on Friday June 27, 2025 @02:52PM (#44399260)
The build tool groups files into a roughly equivalent size based on file length, and dispatches compiles those in parallel.
Re:"Why is the Rust compiler so slow?" by almostgotcaught on Friday June 27, 2025 @03:10PM (#44399410)
how many groups do people usually use to get a fast build (alternatively what is the group size)?
Re:"Why is the Rust compiler so slow?" by maccard on Friday June 27, 2025 @06:43PM (#44400955)
It’s about 300kb before pre processor expansion by default. I’ve never changed it.