Wrote up how I measured a barcode solver from 220ms down to under 5ms by ditching the union-find. Ported the same puzzle across Crystal, Zig, and Elixir along the way.
lillevang.devAdvent of Code 2026, day 4: the union-find I didn't needI solved a barcode puzzle in Crystal with a union-find, ported it to Zig and Elixir, and then measured my way from about 220 ms down to under 5 ms. Plus some thoughts on Crystal, Zig and iyi.
