Back to Home11/12/2025, 5:09:05 PM

Arch-delta Saves 80% Of Bandwidth On Upgrades

37 points
4 comments

Mood

supportive

Sentiment

positive

Category

tech

Key topics

bandwidth optimization

package management

Arch Linux

Debate intensity20/100

The article discusses how 'arch-delta' reduces bandwidth usage by 80% for upgrades by using delta encoding, and provides an explanation of how it works.

Snapshot generated from the HN discussion

Discussion Activity

Light discussion

First comment

6h

Peak period

3

Day 2

Avg / period

2

Comment distribution4 data points

Based on 4 loaded comments

Key moments

  1. 01Story posted

    11/12/2025, 5:09:05 PM

    6d ago

    Step 01
  2. 02First comment

    11/12/2025, 11:16:28 PM

    6h after posting

    Step 02
  3. 03Peak activity

    3 comments in Day 2

    Hottest window of the conversation

    Step 03
  4. 04Latest activity

    11/14/2025, 1:27:46 AM

    5d ago

    Step 04

Generating AI Summary...

Analyzing up to 500 comments to identify key contributors and discussion patterns

Discussion (4 comments)
Showing 4 comments
estimator7292
5d ago
2 replies
I wish there were a simple and easy way to P2P my pacman updates. I have several Arch machines/VMs that all need to download a gigabyte of updates at the same time.

This wastes not only my time and bandwidth, but adds extra load and bandwidth on the mirror. Why can't I have pacman sync with one of my other computers? Even if there's a different set of packages, the core OS is the same and can share packages with other machines.

I did look briefly into hosting a proper pacman mirror locally, but it seemed like way too much effort to save 10 minutes a month.

yndoendo
5d ago
Arch Wiki to the rescue. https://wiki.archlinux.org/title/Package_proxy_cache#

Currently using the dkarhttpd route with rsync. Everything is stored in a custom directory so that older version can be retained. Pacoloco looks interesting.

dTal
5d ago
Just update one then rsync the package cache across? Or mount it over NFS for a hands-off solution. Or hack something up with inotify.
phiresky
6d ago
This is great! Especially the DB sync part, because that happens before a user interaction, so you actually have to wait for it (the update itself can run in the background).

It always felt like such a waste to me how the DB always downloads tens of megabytes of data when likely only 1kB has changed. I mean I also really appreciate the beauty of how simple it is. But I'd bet even a delta against a monthly baseline file would reduce the data by >90%.

Also, it would be interesting to see how zstd --patch-from compares to the used delta library. That is very fast (as fast as normal zstd) and the code is already there within pacman.

For the recompression issue, there is some hard to find libraries that can do byte-exact reproducible decompression https://github.com/microsoft/preflate-rs but I don't know of any that work for zstd.

ID: 45902678Type: storyLast synced: 11/16/2025, 9:42:57 PM

Want the full context?

Jump to the original sources

Read the primary article or dive into the live Hacker News thread when you're ready.