Building http Without a Framework — Architecture article on http

Building http Without a Framework

What the framework was doing for you, and what you can do yourself. Notes where the spec and real browsers disagree.

We spent a month measuring before changing anything. The surprising result was that the bottleneck was not http at all — it was how the data reached the code that used it. Once we moved the work, the numbers fell by an order of magnitude without a single micro-optimisation.

The documentation is accurate, which is not the same as being useful. It tells you what the function does. It does not tell you when reaching for it is a mistake, and that is the part you need.

Performance work is mostly the discipline of removing work. The hard part is not the profile — it is convincing everyone that the problem is worth solving before you have solved it.