# Gearhash gets a 2× speedup on ARM64 with a NEON backend

Original title: Speeding up gearhash on ARM64

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

▲ 40 · by [pranitha_m](<https://news.ycombinator.com/user?id=pranitha_m>) · 💬 1
[original](<https://sam.dev/blog/gearhash-on-arm64>) · [HN discussion](<https://news.ycombinator.com/item?id=49714596>)

## Summary

The gearhash crate's new NEON backend makes it roughly twice as fast on ARM64 at typical chunk sizes, selected automatically on aarch64. The author details the journey from a disappointing 0.92× direct port to 1.81×, overcoming the serial dependency chain and compiler reassociation. Benchmarks show speedups up to 2.17× for larger chunks, and the crate now powers Hugging Face's Xet client with 10k–20k daily downloads.

## Key quote

> You cannot stop the compiler reassociating a sum, but you can (try to) stop it seeing one.

---

## Cite

- Page: https://zeli.app/story/49714596
- Date: 2026-09-15
- Source: sam.dev (https://sam.dev/blog/gearhash-on-arm64)
- Hacker News: https://news.ycombinator.com/item?id=49714596

## Other languages

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