Skip to main content

Swiss Maps in Go

UD2.120 (Chavanne) | Day 1 | 11:30 - 12:00 | Speakers: Bryan Boreham

Swiss Maps in Go
A picture of a devroom at FOSDEM 2024
Open in browser

Notes

Abstract

Did you know that the 'map' type has a whole new implementation as of Go 1.24? Known as "Swiss Maps", they run as much as 60% faster and 25% smaller.

Originally created in 2016 as a C++ library, Swiss Map uses ingenious bit-manipulation techniques to get more throughput from your CPU.

We'll cover:

  • How does it work?
  • How do benchmarks look for the new maps?
  • New SIMD (single-instruction, multiple-data) support in the compiler.
  • Performance results from real-world applications.
  • Gotchas and caveats.

Attachments

Speakers

Bryan Boreham

Notice: The placeholder video image is licensed under CC BY-SA 4.0. The original image can be found hereChanges made to the image are: Cropped the image to a new ratio, part of the image was cut off.