Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Python Compiler Optimization: Improving Performance with -O3 Flag

Hussein Nasser via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.

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

Reviews

Start your review of Python Compiler Optimization: Improving Performance with -O3 Flag

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.