Compiling Rust code is so sloooow.... I don't notice it that much on my M1 Pro Max which is still a somewhat decent machine, but on a bog standard VPS it takes about 10x longer and it's hurting the morale of my one man development team.

#rust #glacial

@chakie Yes, #Rust like C++ (#Cpp) needs beefy machines to build fast. But I wonder what's biggest bottleneck on your VPS, not drives by any chance? IOPS are often trimmed down on them.
@michalfita C++ compiles faster though. Not needed to compile that much though as I use Python and Rust nowadays for the backend stuff.
@chakie try `sccache`
@michalfita For Rust? When I deploy there’s usually a maximum of five changed files, the rest are unchanged. I don’t think a cache would help that much in this case?
@chakie Not for incremental builds, but for dependencies it can.