I am currently at around ~ 18k loc but I split a lot of code into separate crates inside a workspace.
I didn’t really use
CARGO_INCRMENTAL because I ran into a few bugs in the past but I recently turned it on again.
My compile times went down from 8 seconds to 4.2 seconds for one specific example that I am currently working on. I also tested release builds and to my surprise they are even faster. It currently builds in 2.56 seconds with
--release. I have a 16 thread CPU so this might be related, maybe release builds can make use of more cores?