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

Top replies are fetched about an hour after the post goes up. Check back soon. See them on X now

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