NoFOMO
Search 中EN Sign in Sign up

Peaked at #10 Off the board

uv Build and Workspace Optimizations

Charlie Marsh says setting codegen-units=1 made uv builds ~50% faster, cut peak memory 67% and binary size 17%.

Rank over time

Original post

Charlie Marsh @charliermarsh 51.6K followers

Switching to codegen-units = 1 made the uv build ~50% faster, cut peak memory by 67%, and reduced binary size by 17%. I was really surprised by this... Increasing the number of codegen units typically _improves_ build times. https://t.co/jCrxuC9Ddj
Post image
65likes 1reposts 10replies 3,258views

View on X Save

What others are saying

1 more
  1. Charlie Marsh says the uv workspace is now up to 87 crates.

    View on X

Top replies on X

Sign in to see 2 top replies from X

From @charliermarsh, @zack_overflow 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