~/talk

Breaking Python’s Speed Limits with FFI and asyncio

Talkat PyCon Israel 2025 · on Tuesday, 2025-09-09· [python]
links:none on file
slides:none on file

A Python Valkey/Redis client combines asyncio with Rust via FFI and multiple IPC strategies to cut Python overhead, reaching 12,000 TPS on the benchmark. Pure asyncio gives about 71% faster throughput versus a synchronous API; offloading hot paths to Rust with UDS batching and pointer sharing yields up to 185% improvement. The project uses CFFI, Unix-domain sockets, protobuf for batching, and a Rust core (Valkey-glide) to support many language bindings while handling complex Redis-like data structures and memory ownership.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:15Why Valkey and Redis matter
  3. 3:02Requirements for Python client
  4. 4:29Python’s speed limitations
  5. 5:34Synchronous vs async API demo
  6. 6:38Async API performance boost
  7. 8:48Why Rust for performance
  8. 10:37Challenges of Rust-Python integration
  9. 12:23Testing interoperability methods
  10. 14:54Performance results comparison
  11. 16:15Valkey Glide architecture
  12. 17:20Multi-language support benefits
  13. 17:41Open source and community
~/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.