~/talk

Easy wins with Cython: fast and multi-core

Talkat PyCon Australia 2015 · 2015-07-31..08-04· [python]
slides:none on file

Cython compiles .pyx to C then to a binary and adding static types turns dynamic loops into native code, demonstrated on a tax calculator over 10 million incomes. Pure Python run is about 12s, a typed Cython inner loop drops to 50 ms, and splitting work with Python 3 ThreadPoolExecutor plus with nogil threaded sections yields ~92% efficiency on four cores — the prototype actually runs and scales near linearly.

AI-written summary · about

  1. 0:00Start
  2. 3:50Compiler
  3. 4:48Command Line Tool
  4. 8:33Tax Table
  5. 13:20Numpy
  6. 32:15Type Annotations
~/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.