TCP Server in Zig - Part 3 - Minimizing Writes & Reads

from blog openmymind.net, | ↗ original
Before we look at making our server multi-threaded, and then move to polling, there are two optimization techniques worth exploring. You might think that we should finalize our code before applying optimizations, but I think optimizations in general can teach us things to look out for / consider, and it's particularly true in both these cases. In...