~/talk

Things I don’t worry about as NumPy does them for me

Talkat PyCon AU 2026 · 2026-08-26..08-30· [python]
links:none on file
slides:none on file

NumPy is a thin header pointing at a flat buffer so a transpose often just flips shape and strides instead of touching elements, while a reshape can trigger a 6.3 GB copy that costs bandwidth not CPU. Broadcasting uses zero strides to avoid tiling, and keeping values in cache matters. NumPy elides intermediates so an expression that looks like two allocations writes only one (temporary elision), but a Python 3.14 change caused two allocations and ~3× slowdown until fixed (stride zero).

AI-written summary · about

  1. 0:00NumPy’s role in computing
  2. 1:30NumPy optimizations matter
  3. 3:15Cost of array copies
  4. 6:30NumPy arrays vs assumptions
  5. 8:56Transpose without copying
  6. 10:20Detect memory sharing in NumPy
  7. 11:26Memory bandwidth limits
  8. 13:16Avoid 6.3 GB copy
  9. 14:00Broadcasting silent optimization
  10. 16:50Broadcasting benefits
  11. 17:54Eliminate temp arrays
  12. 20:05NumPy temp array safety
  13. 21:50Python 3.14 impact
  14. 22:51Key takeaways
  15. 23:33Profile and optimize NumPy
  16. 24:16Q&A deferred evaluation
~/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.