std.Io.Writer.Allocating ate all my memory
Summary
Technical analysis of a memory-allocation bug in Zig's std.Io.Writer.Allocating. The post demonstrates how the drain implementation may double-reserve memory due to the splat pattern, leading to large memory growth, and compares with ArrayList as a safer alternative for simple byte appends.