2 ms·
It's not generics making Rust compilation slow; Zig has monomorphized generics but is quite fast to compile.
by logicchains 3mo ago
It's not generics making Rust compilation slow; Zig has monomorphized generics but is quite fast to compile.
- rednafi 3mo agoIt's a bunch of things. LLVM is one of them. Zig moved away from it for reasons.
- jchw 3mo agoMonomorphized generics alone don't do it, but pervasive use of monomorphized generics definitely can make binaries huge and make compile times slow. Zig may avoid it generally, but C++ doesn't. (Even Go's generics did slow down compile times a bit at first.)