ls lib/zig/
Zig
Allocators and hash maps in the standard library.
- draft Allocators in Zig: who owns the memoryWhat a std.mem.Allocator is in Zig 0.17.1, which allocator main gets in each build mode, how the page, arena, smp, C and new SafeAllocator differ inside, and what each one costs, measured.
- draft Zig's HashMap: metadata bytes, tombstones and a fixed seedHow std.AutoHashMap in Zig 0.17.1 stores and finds keys: one metadata byte per slot with a 7-bit fingerprint, linear probing, growth at 80% full, Wyhash with seed 0, and tombstones that can make a lookup scan the whole table.