podqast
The Real Python PodcastReal PythonAll episodes

Optimizing Python Performance & Building a Django Static Site

47 min
Before thisMentoring Developers Beyond the Code With Tim Schilling1h 09m
Get its new episodes on Latest. No account

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.

Course Spotlight: Dictionaries and Arrays: Selecting the Ideal Data Structure

In this course, you’ll learn about two of Python’s data structures: dictionaries and arrays. You’ll look at multiple types and classes for both of these and learn which implementations are best for your specific use cases.

Live Course Spotlight: Want to go deeper on the data structures and Pythonic techniques behind faster code? Real Python’s Intermediate Python Deep Dive live course takes you from the object model through generators, decorators, and specialized data structures with expert guidance. Join the waitlist to hear about the next dates.

Topics:

News:

Episode page ↗
More from The Real Python Podcast