How turbohtml makes Python HTML work 3-22x faster

<p>Python&rsquo;s <code>html.escape</code> can scan one string five times. Moving those loops into C removes the interpreter from the hot path, which explains part of a 22x result on prose. Most prose contains nothing to escape. turbohtml gets the rest of the speedup by proving that sixteen bytes need no work, then moving past them in one step.</p> <p>I began with a small accelerator for <a…