~/talk

Introduction to Gevent

Talkat EuroPython 2011 · 2011-06-20..06-26· [python]
links:none on file
slides:none on file

Gevent is a C-extension networking library that gives cooperative greenlets over an event loop; version 1.0 replaces libevent with libev, uses c-extensions for fast context switching, and provides monkey patching of the stdlib so existing blocking code becomes cooperative. Examples: asynchronous DNS via c-ares, stream server + pool, timeouts, and inability to preempt CPU-bound code. Benchmarks show about 60,000 switches/sec, and real users scale single processes to roughly 10,000 connections successfully.

AI-written summary · about

  1. 0:00Introduction
  2. 0:29What is Gevent
  3. 3:48Blocking sockets vs async I/O
  4. 6:58Threading and event loops
  5. 8:44Coroutines and types
  6. 10:52Coroutine switching
  7. 13:03Gevent’s event loop
  8. 14:28The Hub and sleep
  9. 16:13Monkey patching
  10. 18:27Greenlet class and timeouts
  11. 20:18Greenlet pools
  12. 21:20Async communication tools
  13. 22:23Gevent HTTP server
  14. 23:31Database drivers
  15. 24:40Real-world use case
  16. 25:43Summary and future plans
  17. 26:04Q&A
~/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.