~/talk

Swiss Maps in Go

Talkat GopherCon UK 2025 · 2025-08-13..08-15· [compilers-and-language-design]
slides:none on file

Swiss map replaces the old Go map layout in Go 1.24 (with fixes in 1.25) and implements closed hashing with a directory of small bucket slices, storing 7-bit metadata per slot so eight entries are checked at once. The compiler emits SIMD injected via compiler for AMD64 by recognizing a specific function name, yielding up to ~2x faster lookups (big wins on misses) but adds one layer of indirection that hurts cold-cache workloads and has a known empty-struct size bug (issue 71368).

AI-written summary · about

  1. 0:00Swiss Maps in Go
  2. 3:13How Go maps work
  3. 7:10Evolution to Swiss Maps
  4. 11:47Performance benchmarks
  5. 16:46Metadata and hash matching
  6. 22:41SIMD optimization
  7. 29:15Memory overhead
  8. 33:15Regression with empty structs
  9. 35:43Cold cache issues
  10. 37:14Go 1.25 improvements
  11. 41:33Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.