ls lib/go/
Go
Swiss-table maps and the sort packages.
- draft How Go maps work: Swiss tables since Go 1.24What go1.27's built-in map does with your keys: 8-slot groups with control bytes, tables capped at 1024 slots, a directory of tables, and an iteration order that is a random rotation of a fixed one.
- draft How Go sorts: pdqsort in the slices packageWhat slices.Sort, slices.SortFunc and sort.Slice do in go1.27: pattern-defeating quicksort with insertion sort and a heapsort fallback, why it isn't stable, and what the stable sort costs instead.