# Golang Maps: How Swiss Tables Replaced the Old Bucket Design

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

▲ 33 · by [Terretta](<https://news.ycombinator.com/user?id=Terretta>) · 💬 8
[original](<https://blog.gaborkoos.com/posts/2026-07-24-Golang-Maps-How-Swiss-Tables-Replaced-the-Old-Bucket-Design/>) · [HN discussion](<https://news.ycombinator.com/item?id=49039555>)

## Summary

I explore how Go 1.24 replaced the classic bucket-plus-overflow map implementation with a Swiss Table-inspired design. This shift eliminates pointer chasing and improves cache locality by using compact metadata and contiguous probing. The result is faster lookups, higher load factors, and better memory efficiency without changing the external API, offering measurable gains for high-throughput systems.

## Key quote

> The old map was not a broken design waiting to be replaced, but an effective implementation with trade-offs that became more visible as modern CPUs, cache behavior, and high-throughput services pushed for tighter, flatter probe paths.

## HN discussion (8 comments)

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

> Reads like GPT. But, it was still interesting to me. I hadn’t heard of Swiss tables before. The article links to the primary sources, to those who want to avoid reading LLM output: https://abseil.io/about/design/swisstables

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

> So, if engineers out there are not even interested in the most immediate layer of code in front of their eyes (e.g., the code that is now written by LLMs), I guess more and more the kind of stuff like the one in the article is becoming like software archeology, isn’t it?
>
> I love to learn these stuff, and pre-llm era it gave me a plus career wise. Nowadays I guess knowing this stuff pays less off (besides increasing your curiosity)

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

> Slop
>
> LLMs write so badly

---

## Cite

- Page: https://zeli.app/story/49039555
- Date: 2026-07-24
- Source: blog.gaborkoos.com (https://blog.gaborkoos.com/posts/2026-07-24-Golang-Maps-How-Swiss-Tables-Replaced-the-Old-Bucket-Design/)
- Hacker News: https://news.ycombinator.com/item?id=49039555

## Other languages

- zh: https://zeli.app/zh/story/49039555 · markdown: https://zeli.app/zh/story/49039555.md
