~/talk

Faster than Google? Optimization lessons in Python.

Talkat PyData Berlin 2014 · 2014-07-25..07-27· [python]
slides:none on file

Porting word2vec into Python produces concrete results: an optimized Python port using generators, NumPy, Cython, BLAS runs substantially faster than naive code and—after hand‑tuned Cython cores, BLAS calls and careful memory management—claims 4x faster than Google’s C, 100x faster than optimized NumPy and 12,000x faster than pure Python. The implementation works at scale with streaming data, shows modest parallel scaling, doubles peak RAM versus the C build, and requires fragile low‑level fixes for BLAS and pointer code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Python beyond Google C
  3. 3:21Porting word2vec to NumPy
  4. 6:52Core code to Cython
  5. 8:00Using BLAS for three times faster execution
  6. 9:45Optimization results
  7. 11:54Parallelizing word2vec
  8. 14:45Optimization trade-offs
  9. 17:59Project overview
  10. 19:23Q&A: Memory usage
  11. 20:50Q&A: Numba speedups
  12. 21:55Q&A: Performant Python
  13. 24:43Q&A: Gensim intro
  14. 26:06Q&A: Testing strategies
  15. 27:11Closing
~/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.