~/talk

Making Sanic Even Faster

Talkat Python Web Conf 2021 · 2021-03-22..03-26· [python, web-performance]
links:none on file
slides:none on file

Sanic 21.3 rebuilds routing and response plumbing: it generates an AST-like route tree at startup, emits compiled runtime code via compile/exec to avoid regex loops, and narrows static vs dynamic routing latency (routing cost roughly halved in benchmarks). Streaming responses unify text/html/stream handling so callbacks disappear and HTTP/2 becomes feasible, signals replace middleware/listeners for background dispatch, a connection context object carries per-connection state, and end-to-end benchmarks show peaks around 121k req/s.

AI-written summary · about

  1. 0:00Introduction to Sanic
  2. 1:02New Router Benchmarks
  3. 5:20Async IO Advantages
  4. 6:57Router Optimization Technique
  5. 12:34Benchmarking Improvements
  6. 15:11Runtime Compilation
  7. 20:26Future Performance Goals
  8. 23:43Router Architecture
  9. 27:58Streaming Responses
  10. 33:27Signal System Beta
  11. 38:18Connection Context & Wrap-up
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.