~/talk

Cache me if you can: Boosting performance with Data Caching in Python

Talkat XtremePython 2023 · 2023-12-05..12-06· [python, web-performance]
slides:none on file

Shows concrete wins: a simple dict cache makes repeated API fetches drop from 1.14s to effectively 0s per request, and Python's @lru_cache cuts fib(40) from ~21s to near 0s. Covers eviction tradeoffs like LRU eviction, invalidation strategies (manual, event-driven, TTL), and metrics to track cache hits/misses and latency. Recommends external stores redis/pymemcache for multi-server caches and warns caching must not mask bad indexes, poor data modeling, or wrong DB choices.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:26What is caching and latency
  3. 4:13Key considerations before caching
  4. 7:05When to use caching
  5. 8:47Cache invalidation strategies
  6. 10:12Choosing caching approach
  7. 11:18Implementing caching in Python
  8. 14:08Local vs distributed caching
  9. 15:32Measuring cache effectiveness
  10. 16:15Closing and Q&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.