← All stories
● Covered by 1 source · 1 reportLow impact1 positive

uv Improves Wheel Cache Performance by Reusing Buffer for Content Hashing

🔄 Updated 1h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • uv now reuses a single 64 KiB buffer for content hashing per wheel.
  • This reduces buffer allocations from 11,120 to one for PyTorch.
  • Cold install times decreased by 2.6% to 9.5% for tested packages.
  • The change affects content-addressed caching with streaming extraction.

Buffer Reuse for Content Hashing

uv has implemented an optimization that changes how buffers are managed during content hashing for wheel extraction. Previously, a new 64 KiB buffer was allocated and zeroed for every file copied and hashed during streaming extraction. The new approach reuses a single 64 KiB buffer across the entire wheel.

Performance Improvements

This change significantly reduces buffer allocations. For example, with the PyTorch wheel used in benchmarks, buffer allocations for hashing decreased from 11,120 to just one. This optimization led to measurable improvements in cold install times.

Benchmarks showed reductions in cold install times ranging from 2.6% for AnyIO to 9.5% for NumPy. SymPy saw an 8.3% reduction, and PyTorch CPU installs were 7.8% faster. A 14-package environment also experienced a 7.0% speedup.

Impact on Installations

The performance gains are observed during cold installs where content-addressed caching is enabled and wheels are served over local HTTP. Cached installs and local-wheel controls did not show consistent changes, indicating the optimization specifically targets the initial extraction and hashing process.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~7 min · 6 stories · Aug 31

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

uv implemented a change to reuse a single 64 KiB buffer for content hashing across an entire wheel during streaming extraction, rather than allocating a new buffer for each file. This optimization reduces buffer allocations for hashing from over 11,000 to one for large wheels like PyTorch, resulting in cold install time reductions of 2.6% to 9.5% for various packages.