Optimizing Python Code

Optimizing Python Code
Optimizing Python Code
English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 2h 04m | 232 MB

By optimizing your Python code, you can ensure that your code uses fewer resources and runs faster than it did previously. In this advanced course, explore tips and techniques that can help you optimize your code to make it more efficient. Instructor Miki Tebeka covers general tools of the trade, including how to leverage the tools Python provides for measuring time, and how to use line_profiler to get line-by-line profiling information. Miki also shares how to pick the right data structures, how approximation algorithms can speed up your code, and how to use NumPy for fast numeric computation. He wraps up the course with a discussion of how to integrate performance in your process.

Topics include:

  • Rules of optimization
  • Measuring time
  • Using line_profiler
  • Picking the right data structure
  • Using the bisect module
  • Memory allocation in Python
  • Caching, cheating, and parallel computing
  • NumPy, Numba, and Cython
  • Design and code reviews