Explore how Fedora Linux is improving Python performance through compiler optimization in this informative video. Learn about the fundamentals of compiling and different optimization levels, including O1, O2, and O3. Discover how these optimizations affect Python's performance, with potential improvements of up to 1.16x in benchmark tests. Understand the trade-offs between performance gains and increased binary size. Follow along as the video breaks down each optimization level, from local register allocation and subexpression elimination to aggressive function inlining and SIMD instructions. Gain insights into the compilation process and its impact on Python's speed and efficiency.
Overview
Syllabus
Intro
Fedora Linux gets Fast Python
What is Compiling?
Compiling with No Optimization
Compiling with -O1
Compiling with -O2
Compiling with -O3
Showing Numbers
Taught by
Hussein Nasser