# Atuin syncs shell history 32x faster by packing encrypted records client-side

Original title: Making Atuin sync 32x faster with packfiles

> Hacker News story 50456548 · language: en · submitted 2026-11-11
> Web version: https://zeli.app/story/50456548
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 50 · by [ossusermivami](<https://news.ycombinator.com/user?id=ossusermivami>) · 💬 22
[original](<https://blog.atuin.sh/making-atuin-sync-32x-faster-with-packfiles/>) · [HN discussion](<https://news.ycombinator.com/item?id=50456548>)

## Summary

Atuin's end-to-end encryption meant its servers couldn't compress or bundle history records, so sync slowed badly for power users — 5.4 minutes at the 99th percentile. Release 18.20.0 fixes this with client-built packfiles: records are bundled, compressed with zstd, then encrypted, plus pipelined downloads and batched SQL inserts. Atuin Hub sync is now 32x faster, self-hosted 16x, and the sync protocol version didn't change.

## Key quote

> The idea behind Atuin's packfiles is the same: take N plaintext records, bundle them, compress them and then encrypt them.

## HN discussion (22 comments)

### [ashkankiani](<https://news.ycombinator.com/item?id=50515976>)

> I don't want to be mean, but in my personal experience and projects, I have a kind of rule. If I get a 5% to 50% speedup, then I probably did a good job optimizing. If I get a 2x to 5x speedup then I probably was fixing up a prototype. If I get >10x speedup, I fucked up the first time.

### [bita_nidir](<https://news.ycombinator.com/item?id=50516503>)

> OK, I had a laugh at the TP-esque quote
>
> This is not just a small performance improvement. This is a paradigm shift in how Atuin does sync.
>
> — lots of numbers on a GPU, August 2026

### [cowlevel](<https://news.ycombinator.com/item?id=50515728>)

> \> We sync many thousands of records in single-digit seconds.
>
> Is that meant to be impressive performance? I'd never heard of Atuin but apparent it syncs your shell history between machines using a Blockchain?

---

## Cite

- Page: https://zeli.app/story/50456548
- Date: 2026-11-11
- Source: blog.atuin.sh (https://blog.atuin.sh/making-atuin-sync-32x-faster-with-packfiles/)
- Hacker News: https://news.ycombinator.com/item?id=50456548

## Other languages

- zh: https://zeli.app/zh/story/50456548 · markdown: https://zeli.app/zh/story/50456548.md
- ja: https://zeli.app/ja/story/50456548 · markdown: https://zeli.app/ja/story/50456548.md
- ko: https://zeli.app/ko/story/50456548 · markdown: https://zeli.app/ko/story/50456548.md
- de: https://zeli.app/de/story/50456548 · markdown: https://zeli.app/de/story/50456548.md
- es: https://zeli.app/es/story/50456548 · markdown: https://zeli.app/es/story/50456548.md
- ru: https://zeli.app/ru/story/50456548 · markdown: https://zeli.app/ru/story/50456548.md
