Hacker News
How Swiss tables work in Go built-in map
79 points by valyala
ago
|
5 comments
nasso_dev
|next
[-]
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
hazz
|root
|parent
|next
[-]
The Rust std lib HashMap is powered by the hashbrown crate which is also a port of Swiss Tables. At a brief glance Ruby/Python don’t use this approach but I don’t see any reason why they couldn’t.
EdSchouten
|root
|parent
|next
|previous
[-]
I guess it took a bit longer to get it adopted within Go because of some additional challenges: