~/talk

Python Performance Investigation by Example

Talkat PyCon 2018 · on Saturday, 2018-05-12· [python]
slides:none on file

A brute force Python solution that simulates the firewall runs through 3.8 million steps and takes about 1,012 minutes, then a math rewrite that computes scanner positions removes state copying and drops runtime to six seconds — a factor of 100 improvement. Running the same code on PyPy and using compilers / JITs like numba and Cython pushes times into subsecond and millisecond territory, showing profiling, targeted refactor, and selective compilation actually work.

AI-written summary · about

  1. 0:00Introduction
  2. 0:24Meet Matt Davis
  3. 0:53Performance
  4. 1:40Scientific Process
  5. 2:09Advent of Code
  6. 2:55Firewall Crossing
  7. 3:41Counter Time Steps
  8. 4:50Code Outline
  9. 5:18Scanner Class
  10. 5:44Scanner Dictionary
  11. 6:06Clock Crossing
  12. 7:12Catching Clock Crossing
  13. 7:50Did it work
  14. 8:12Pause
  15. 9:18Profiling
  16. 10:45C Profile
  17. 11:24Stats
  18. 12:07Total Time
  19. 12:49SnakeVis
  20. 17:09Reframe
  21. 17:32Caught Crossing
  22. 18:05Fine Start
  23. 20:19PiPI
  24. 21:51Number
  25. 24:16Catching crossing
  26. 24:38Counting time
  27. 25:24Scythe
  28. 27:06Safety
  29. 30:11Conclusion
~/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.