How uv got so fast

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Python developers can stop attributing uv's speed purely to Rust and instead understand the packaging design choices that pip could adopt or replicate.

Read this as

Simon Willison highlights a teardown by Andrew Nesbitt explaining why uv, a tool for installing Python software packages, is far faster than pip, the standard installer. The speed is not just because uv is written in Rust; it also skips legacy packaging baggage and avoids running Python code during dependency resolution. Two clever tricks include fetching package information in tiny pieces instead of downloading entire files. Developers using Python benefit through faster installs.

An analysis by Andrew Nesbitt, echoed by Simon Willison, argues uv's dominance over pip in Python package installation speed comes from architectural choices, not merely a Rust rewrite. uv leverages modern packaging standards pip must bypass for backwards compatibility. The implication is that uv's lead is a design head start competitors like pip could partially close, though migration costs and ecosystem inertia favour incumbents.

Nesbitt's teardown shows uv first tries PEP 658 metadata, then falls back to HTTP range requests on the wheel's zip central directory, then full download, then source builds. Willison's AI-assisted port demonstrates fetching a 40MB Playwright wheel's metadata using 18,760 bytes, a 100.0% saving. uv also packs over 90% of version strings into single u64 integers for fast comparison. None of these tricks require Rust.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

uv pip Simon Willison Andrew Nesbitt PEP 658 Playwright Rust

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading