~/talk

Streaming templates with asyncio

Talkat PyCon Australia 2014 · 2014-08-01..08-05· [python]
name:Jay Coles
links:none on file
slides:none on file

Converts a whitespace-y templating engine to stream HTML by having render return an AsyncIO queue so fragments are streamed incrementally to the client; uses AsyncIO queues and generator coroutines with yield from not yield to compose I/O and delegate parsing; finds AsyncIO overhead small versus generator work but generator-context switching is costly; discovers a running-renderer death can leave sockets open and needs task supervision and timeouts; pdb debugging works.

AI-written summary · about

  1. 0:00Intro
  2. 1:44What is this talk about
  3. 3:26Wither Example
  4. 4:22Wither 3
  5. 6:37Implementation
  6. 8:09Performance
  7. 10:45What I learned
  8. 14:53Things to avoid
  9. 16:25Good parts
  10. 19:41Bad Parts
  11. 23:59Stack Traces
  12. 24:29What is here already
  13. 25:50What is missing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.