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.
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: