Real Python Podcast E320 Title Image

Episode 320: Optimizing Python Performance & Building a Django Static Site

The Real Python Podcast

Nov 27, 2026 47m intermediate django stdlib web-dev

What goes into moving from profiling the performance of a Python program to optimizing it? What are common techniques you should consider for speeding up your code, and which ones should you avoid? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.

We cover a recent Real Python practical guide about optimizing Python performance. The piece goes beyond the first step of finding the slow areas of code through profiling and into specific optimization techniques. We discuss choosing better algorithms and data structures, caching results, and using tools from the standard library.

We also share other articles and projects from the Python community, including recent releases, a pair of Python Enhancement Proposals, using Django as a simple static site builder, how a Python type checker decides a variable is unused, pull request limits for the CPython repo, a Postman alternative built in Python using Textual, and a world clock for the terminal.

Topics:

  • 00:00:00 – Introduction
  • 00:02:04 – Python 3.15.2, 3.14.10, 3.13.18, 3.12.16 and 3.11.18 Released
  • 00:02:34 – Python 3.16.0 alpha 2 is now available
  • 00:03:08 – Django Security Releases Issued: 6.1.3, 6.0.10, and 5.2.19
  • 00:03:25 – Advice on managing security releases and updates
  • 00:09:06 – PEP 850: Wheel Variants: Providers
  • 00:09:49 – PEP 836: JIT Go Brrr: Python’s Experimental JIT to Be Removed
  • 00:11:17 – Announcing New Security Developer at the PSF
  • 00:11:55 – In Memoriam: Tim Peters 1952–2026
  • 00:12:57 – Python Performance Optimization: A Practical Guide
  • 00:25:54 – Video Course Spotlight
  • 00:27:24 – Django as a Simple Static Site Builder
  • 00:33:08 – How a Python Type Checker Decides a Variable Is Unused
  • 00:38:47 – Pull Request Limits for CPython Repo
  • 00:41:44 – Ghostman: Postman Alternative Built in Python With Textual
  • 00:44:04 – terrahour: World Clock With a Day/Night Map for the Terminal
  • 00:46:18 – Thanks and goodbye

News:

Show Links:

Project:

Additional Links:

Want to go deeper on this episode? Mentor AI can explain the topics it covered and find tutorials to learn more.