~/talk

Accelerating Scientific Computing in Python with Numba: A Real-World Example

Talkat XtremePython 2023 · 2023-12-05..12-06· [python, data-science]
slides:none on file

Shows a real pipeline: compare C (clang -O3) assembly to Python compiled with Numba JIT via LLVM IR and inspect_asm, then solve a 10M-point irregular time series max-over-24h problem. Naive Python runs 3h43m, adding Numba drops it to 235s (~57×); switching to a linear MaxQueue (two-stack) algorithm yields ~50s, and converting classy code to procedural Numba-typed functions finishes in 11s (≈1251× speedup).

AI-written summary · about

  1. 0:00Introduction to Numba
  2. 2:35Interpreted vs compiled code
  3. 3:47Python internals and Numba
  4. 5:14The role of LLVM
  5. 7:06Implementing Numba
  6. 8:05Numba best practices
  7. 9:30Assembly and performance
  8. 10:37Analyzing execution loops
  9. 11:43Performance benchmarks
  10. 14:09Case study: Time series data
  11. 15:21Optimizing with Numba
  12. 17:10Algorithmic improvements
  13. 19:04Linear solution strategy
  14. 19:55Refining code for Numba
  15. 20:39Maxizing final efficiency
  16. 21:35Final results and takeaways
  17. 22:14Conclusion
~/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.