They made Python faster with this compiler option

They made Python faster with this compiler option

Released Tuesday, 7th May 2024
Good episode? Give it some love!
They made Python faster with this compiler option

They made Python faster with this compiler option

They made Python faster with this compiler option

They made Python faster with this compiler option

Tuesday, 7th May 2024
Good episode? Give it some love!
Rate Episode

Fundamentals of Operating Systems Course https://oscourse.win

Looks like fedora is compiling cpython with the -o3 flag, which does aggressive function inlining among other optimizations.

This seems to improve python benchmarks performance by at most 1.16x at a cost of an extra 3MB in binary size (text segment). Although it does seem to slow down some benchmarks as well though not significantly.

O1 - local register allocation, subexpression elimination O2 - Function inlining only small functionsO3 - Agressive inlining, SMID

0:00 Intro1:00 Fedora Linux gets Fast Python5:40 What is Compiling?9:00 Compiling with No Optimization12:10 Compiling with -O115:30 Compiling with -O220:00 Compiling with -O323:20 Showing Numbers

Backend Troubleshooting Coursehttps://performance.husseinnasser.com

Show More

Unlock more with Podchaser Pro

  • Audience Insights
  • Contact Information
  • Demographics
  • Charts
  • Sponsor History
  • and More!
Pro Features