Urgent.News

What's breaking now, across thousands of outlets.

Tech

A warm pip install took me 13 seconds. uv took 56 milliseconds.

A warm pip install of a normal web backend took 13 seconds on my machine. The same install with uv took 56 milliseconds. Not 56 milliseconds faster. 56 milliseconds total, for 63 packages, including numpy and pandas and pillow. I did not believe it either, so I ran it enough times to be sure the number was real and not a no-op. It is real, and the reason it is real is the interesting part. What I…

A recent pip install of a typical web backend took 13 seconds on the reporter's machine, while the same install with uv completed in just 56 milliseconds. This significant difference led the reporter to investigate further. The uv package installer, created by Astral, the company behind the Ruff linter, is marketed as being 10 to 100 times faster than pip.

To test this claim, the reporter built a requirements file resembling a real-world deployment, including FastAPI, uvicorn, SQLAlchemy, Alembic, Pydantic, Celery, Redis, pandas, numpy, pillow, and more. The installer was tested four ways, three times each: pip and uv, both from a cold cache into a fresh virtual environment and from a warm cache into a fresh virtual environment. The results showed that uv was significantly faster in warm cache mode.

The warm numbers, where uv is truly faster, need explanation. In cold cache mode, uv is about five times faster, primarily due to parallel downloads. However, when uv installs software, it still performs actual filesystem operations for each package, such as copying and running the install machinery. These operations account for the 13 seconds it takes to install 63 packages.

In contrast, uv uses a content-addressed global store and hard-links files, making the installation process much quicker, as it only creates metadata links instead of copying data.

This method results in approximately 56 milliseconds for installing 63 packages. The key difference is that uv doesn't copy files; it links to existing files on disk. This explains the 236 times speed increase in warm cache mode. However, the hard-link trick only works when the cache and environment live on the same filesystem. If they're on different disks, uv falls back to copying, which is four times slower than linking.

The reporter emphasizes that the hard links are a significant advantage, but they're not the only reason uv is faster. It also resolves and unpacks packages in parallel using Rust, unlike pip's sequential Python approach. Even when forced to copy files like pip does, uv remains about forty times faster due to these parallel processes.

The practical implications of this are substantial, particularly for continuous integration (CI) pipelines where environments need to be rebuilt frequently. By switching from pip to uv, a Python backend site like ExtraTime could reduce environment build times from 13 to 26 seconds to sub-second warm times or even five seconds cold on a runner without a cache.

Essentially, changing the installer to uv provides notable time savings in a task performed hundreds of times weekly.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How OmniGIF converts Live Photos to GIF entirely in the Browser

iPhone Live Photos are not a single GIF-ready file. They are a still image plus a short video clip. Most "Live Photo to GIF" tools ask you to upload that clip to a server.

  • OmniGIF converts Live Photos to GIFs in browser without server upload
  • Uses WebCodecs + Mediabunny or FFmpeg.wasm conversion engines
  • Both engines perform local conversion, no server needed

‘Master at what he does’: Ime Udoka on Houston’s Chip Engelland addition

“To have the master at what he does in the building has been good for us,” Ime Udoka says of new Rockets assistant Chip Engelland.

  • Chip Engelland, known as shot doctor, joins Houston Rockets coaching staff
  • Ime Udoka, head coach, excited about Engelland's return and mentorship
  • Engelland's expertise beneficial for young players like Amen Thompson and Reed Sheppard

Daylight Saving Time 2026: Why Modern Time Tracking Shouldn’t Fear the Repeated Hour

On October 25, 2026 , Germany will switch from daylight saving time back to standard time. For people, that means one extra hour of sleep.

  • Germany reverts to standard time on October 25, 2026, adding an extra hour of sleep
  • Daylight saving shift serves as test for software's time management capabilities
  • Time-tracking systems must differentiate between time points, durations, and displayed local times

More from Sunday 13 September →