# IPinfo shrinks its MMDB databases by a third without touching a byte of data

Original title: How we made our MMDB files a 33% smaller

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

▲ 38 · by [mmaia](<https://news.ycombinator.com/user?id=mmaia>) · 💬 4
[original](<https://ipinfo.io/blog/how-made-mmdb-files-smaller>) · [HN discussion](<https://news.ycombinator.com/item?id=50233948>)

## Summary

IPinfo found that MMDB writers store duplicate subtrees in the search tree, so it applied hash-consing — a technique from compiler research — to share identical nodes. Across 89 daily databases the catalogue dropped from 91.2 GB to 62.8 GB, with ipinfo_privacy falling 80%. Files stay standard MMDB, so every reader works unchanged, lookups return identical results, and memory use falls too. The tool is now open source.

## Key quote

> In our files, a large share of the tree was duplicate subtrees.

---

## Cite

- Page: https://zeli.app/story/50233948
- Date: 2026-10-25
- Source: ipinfo.io (https://ipinfo.io/blog/how-made-mmdb-files-smaller)
- Hacker News: https://news.ycombinator.com/item?id=50233948

## Other languages

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