~/talk

Python Serialization and the Hallows of Parallel Computing

Talkat PyCon India 2020 · 2020-10-02..10-05· [concurrency, python]
name:Saim Raza
links:none on file
slides:none on file

Compares threading vs multiprocessing with concrete timings: 16 URLs: serial 6.0s, 4 threads 2.1s, 4 processes 2.8s shows threads win for IO due to lower spawn overhead, while CPU counter: serial 4.2s, 4 threads slower, 4 processes 1.9s shows processes win for CPU-bound work. Explains pickle serializes by name so lambdas and functions defined in IPython fail, and shows solutions: dill/cloudpickle serialize by value but are slower; an in-house “disco pickle” uses CPython C pickler for ~100× speedups and avoids global dispatch overrides, with tradeoffs around security and code-change consistency.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:51What is parallel computing
  3. 3:37Threading vs multiprocessing
  4. 5:45CPU-bound vs IO-bound tasks
  5. 6:49How multiprocessing works
  6. 8:12Pickling limitations in Python
  7. 10:01Pickling in Jupyter/IPython
  8. 11:03Serialization by value
  9. 13:06Trade-offs in pickling
  10. 14:31Introducing disco pickle
  11. 17:44Deshaw’s pickle optimizations
  12. 18:13Q&A session
  13. 22:21Async programming and parallelism
  14. 24:59Async vs threading benefits
  15. 27:57Concurrency vs parallelism
  16. 29:46Closing remarks
~/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.