John Parejko (@parejkoj), Lia Corrales (), Phil Marshall (@drphilmarshall) and Andrew Hearin (@aphearin)
-
The Faster Python notebook contains most of the examples from John Parejko's breakout Multiprocessing, distilled into minimal working examples. It needs some more work in order for it to include
line_profilerandcythondemos, and could use some demo of parallelization beyondmultiprocessing. -
For a more involved (and real world) demo, check out John's analysis and partial speed-up of Lia's scattering code including Lia's simple demo of how to run the code, with some profiling scripts
- See the
setup.pyin John's fork of Lia's AHW2015 repo: that's what tells python how to build thecython-created C- library.
cython -a scattering_utils.pyx
python setup.py build_ext --inplace
- The file
scattering_utils.htmlthat gets produced is what lets you view the C- code thatcythonproduced.