# Go 1.24's Swiss Table Map: A Visual Guide to the New Internals

Original title: How Swiss tables work in Go built-in map

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

▲ 96 · by [valyala](<https://news.ycombinator.com/user?id=valyala>) · 💬 12
[original](<https://victoriametrics.com/blog/go-swiss-table-map/index.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49548852>)

## Summary

Go 1.24 replaced its map implementation with Swiss Tables, a design that speeds up lookups using SIMD and clever control bytes. This article explains the new internals visually, from the runtime Map struct to groups, control words, and the table structure that manages multiple groups. Learn how H1 and H2 hash bits guide key placement and lookup, and how the map grows and handles deletions.

## Key quote

> Go uses SIMD instructions to compare H2 42 with those 8 control bytes at the same time.

## HN discussion (12 comments)

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

> swiss tables were invented by engineers working at google's zurich office, hence the name
>
> im surprised that go, a programming language also from google, wasn't using them!
>
> for an excellent talk on the development of swiss tables i highly recommend this talk by Matt Kulukundis at CppCon 2017: "Designing a fast, efficient, cache-friendly hash table, step by step" 
>
> https://youtu.be/ncHmEUmJZf4

---

## Cite

- Page: https://zeli.app/story/49548852
- Date: 2026-09-03
- Source: victoriametrics.com (https://victoriametrics.com/blog/go-swiss-table-map/index.html)
- Hacker News: https://news.ycombinator.com/item?id=49548852

## Other languages

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