~/talk

Lift your Speed Limits with Cython

Talkat PyCon.DE 2017 · 2017-10-25..10-27· [python]
links:none on file
slides:none on file

Shows Cython compiling ordinary Python into C, adding typed C doubles and buffer access to drop object overhead, disabling bounds checks and releasing the GIL for OpenMP loops. Uses numpy arrays and C APIs, shows annotated source and generated C. Measured runs: pure Python ~3s, numpy vectorized ~58ms, compiled+typing ~30ms then ~10ms after indexing optimizations — up to ~300× speedup on the tax-rate example and working code throughout.

AI-written summary · about

  1. 0:00Start
  2. 5:55Demo
  3. 11:20Own Wrapper Functions
  4. 18:58Log Normal Distribution
  5. 19:23The Tax Calculation Formula
  6. 20:52Average Tax Rate
  7. 22:10Optimize this Code
  8. 22:55Umpire Slicing
  9. 26:44C Optimizations
  10. 29:16Python Function into a Static C Function
~/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.