Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Investigate compile time of serde crate #1146
We were doing so well for a few rustc releases. Building the current master branch of serde:
But since then it has been going up and up:
Will need to look into what makes it take 50% longer than it used to.
One thought I had today about the compile time of the serde crate is that it very frequently nowadays has the
There's not really a solution to this today per se. A workaround is to meticulously only use
Put another way though the compile time of
One "quick" way to improve the comiple time of the
Edit: For a more visceral view of what I mean about
Thanks, I can see how that would help. That is a neat visualization.
It is unfortunate that most people would probably perceive it the opposite way if we make this change -- more crates = more bloat = perceived as slow, even if it builds end-to-end faster than the current setup.
Here's another data point of a different graph I've seen:
That's got a lot of dependencies pruned, but the entire compilation of
Anyway, as I already wrote on the forums, there's a feature request on rustc to enable this pipelining and I agree that in general users (even serde) shouldn't have to, in the long term, use a crate organization like this just to get better compile times.