The post explores the phenomenon of an additional build step making a Zig app run faster. It discusses how a bash pipeline works and why the extra step improves performance. The author seeks help from the Zig community and makes changes to the benchmark to fix the issue. They also discover another performance fix related to syscalls.

โ€ข9m read timeโ€ขFrom mtlynch.io
Post cover image
Table of contents
Creating a minimal reproduction of the phenomenon ๐Ÿ”—๏ธŽAsking the Zig community for help ๐Ÿ”—๏ธŽMy mental model of bash pipelines is wrong ๐Ÿ”—๏ธŽRevisiting my byte counter ๐Ÿ”—๏ธŽFixing my benchmark ๐Ÿ”—๏ธŽApplying Andrew Kellyโ€™s performance fix ๐Ÿ”—๏ธŽBenchmarking a larger input ๐Ÿ”—๏ธŽCheating my way to maximum performance ๐Ÿ”—๏ธŽConclusion ๐Ÿ”—๏ธŽ

Sort: