~/talk

Polishing Python: Preventing Performance Corrosion with Rust

Talkat PyData Amsterdam 2024 · 2024-09-18..09-20· [python, rust]
links:none on file
slides:none on file

Compares Python and Rust by porting a pure‑Python payment handler into PyO3 and packaging with Maturin and a Rust crate for parallelism (rayon). Benchmarks run 3,000 customers × 10,000 payments = 30 million transactions: baseline Python averages ~2.5 minutes, Rust single‑thread is ~30% faster, Rust + parallelism falls to ~1:06 (~55% speedup). Implements moving average, standard deviation and 95% VaR in Rust; it works but payoff appears only for large, CPU‑bound batches and adds build and maintenance complexity.

AI-written summary · about

  1. 0:00Python and Rust performance
  2. 4:40Python simplicity costs
  3. 7:25Rust speed and safety
  4. 14:50Python-Rust integration
  5. 17:18Payment handler case study
  6. 22:16Python to Rust structs
  7. 25:31Python vs Rust benchmarks
  8. 27:58Rust challenges
  9. 29:02Rust integration worth it
  10. 30:07Q&A on abstractions
  11. 33:01Use cases and limits
  12. 34:06Migration approaches
~/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.