~/talk

The hidden costs of your favorite functions

Talkat PyCon Israel 2022 · 2022-06-28..06-29· [python, web-performance]
links:none on file
slides:none on file

Shows that calling pop(0) shifts the whole list so pop(0) is O(n) while pop() is O(1), measured as ~20x slower on 100k items and >100x on 1M items. Demonstrates using a tracer profiler to get per-function time and call counts, finds a pandas compare where row iteration (iterrows) takes 478 ms, apply 110 ms and vectorized ops 2 ms on 11,717 tweets. Recommends profile, test alternatives, then monitor in production.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:10Why code performance matters
  3. 3:18Hidden cost of list.pop()
  4. 8:17Using profilers to find bottlenecks
  5. 12:34Pandas performance comparison
  6. 16:07Monitoring and improving code
  7. 19:20Q&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.