At some point, your complexity gets bigger than simply coding a state machine that operates directly on the network buffers themselves:<p>That is to say, I suspect that if micro-optimisations can double our performance, they will be more complicated than just writing a customised ring0 that implements HTTP directly inside the network driver.<p>Here is how I&#x27;m looking at it:<p>• 10Gb&#x2F;sec network port<p>• 4k max requests and responses<p>• == 1.3 million HTTP requests per second.<p>Now the problem is that <i>main memory</i> is not much faster than our fastest network: About 15Gb&#x2F;sec, so what we&#x27;re talking about here is code and state staying entirely in L1, and streaming the network buffers across the CPU, and responding in one pass, to get that 1.3 million optimal performance.<p>My dash server gets ~135k HTTP requests per second on localhost (I should be able to approach 300k&#x2F;sec over a network if I ever get around to it). That&#x27;s 22% of our optimal performance, and a lot better than any other HTTP server I&#x27;m aware of.<p>At this speed, one of those micro-optimisations `writev()` is actually slower than `write()` -- likely because the code path is shorter in the simpler codebase -- but it illustrates my concern nicely: That we are close to that break-even point with the optimisations we can make. If we make our server bigger and more complicated, it might not make our programs any faster.<p>That suggests to me that the solution is actually fewer, simpler syscalls, not more, bigger ones.