NoFOMO
Search 中EN Sign in Sign up

Peaked at #9 Off the board

uv split into 14 crates

Charlie Marsh split uv's main crate from 46k to 6k lines across 14 crates, speeding incremental builds by 30-40%.

Rank over time

Original post

Charlie Marsh @charliermarsh 52K followers

Cargo's compilation model is built around crates: independent crates get compiled in parallel, and unaffected crates can be skipped entirely. We split up uv's primary crate into 14 (!) crates (from 46k to 6k lines of code), and it sped up incremental build times by 30 to 40%! https://t.co/Q2GnULqfnm
Post image
352likes 15reposts 17replies 17Kviews

View on X Save

What others are saying

1 more
  1. Charlie Marsh @charliermarsh 110

    uv creator Charlie Marsh says AI agents helped split uv's main crate into 14 (46k to 6k lines), speeding incremental builds 30-40%.

    View on X

Top replies on X

Sign in to see 2 top replies from X

From @charliermarsh, @mitsuhiko and others. Spam removed, with English and Chinese translations.

Sign up free Have an account? Sign in

Discussion 0

No comments yet. Start the conversation.

Suggest a source

Is there a first-hand source we're missing, or a topic we should watch? Tell us. Once approved, everyone's board covers it.

@username or profile link