Menu

1 / 3

How Mitts Makes Parallel Rust Builds Faster Than Cargo

#hackernoon#technology#cargo#mitts#build
Reading 0:00
15s threshold

Cargo takes minutes. Mitts takes seconds.

For parallel work, the question is simple: when will the whole batch of builds be ready? The code is already split across branches. Now you need completed artifacts to move on to verification.

In The Hundred , twelve rustls worktrees on Linux x86_64 took 3 min 42 s with Cargo . With Mitts, 9.3 s . That is the completion time of the whole batch for one project, not a corpus total or the time of the first worktree to finish.

Figure 1. One heavy project from the study; medians of three repeats. Shared caches were prewarmed, local targets were empty. Priming time is excluded; the axis starts at zero.

Plain Cargo in this configuration has no shared compilation cache between worktrees: each fresh checkout starts with an empty target directory. Mitts and sccache receive prewarmed shared caches.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.