1 comment

[ 0.18 ms ] story [ 9.3 ms ] thread
This looks at replacing malloc/free for small temporary strings with VLAs, using a stack-first approach with heap fallback. Benchmarks were a bit surprising—allocator behavior (especially on musl) changes the trade-offs more than I expected. Interested in how others approach temporary allocation patterns.