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

YouTube

Supercharge Your Python Library Using AST Parsing

PyCon US via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn advanced techniques for optimizing Python library performance by combining AST parsing with the Python/C API in this 31-minute conference talk from PyCon US. Discover how to leverage Python's standard library "ast" module to modify code syntax and transform the Python Abstract Syntax Tree for enhanced runtime performance when working with C extensions. Explore practical optimization strategies that go beyond simply executing compiled C functions, focusing on performance gains achievable between Python code execution and C function invocation. Examine real-world examples drawn from CSP, an open-source computation graph library that extensively utilizes the Python/C API, demonstrating how AST transformations can supercharge library performance. Master advanced optimization techniques that require familiarity with both Python's "ast" module and the Python/C API to maximize the efficiency of your Python libraries through strategic code transformation and C integration.

Syllabus

Supercharge your Python library using AST parsing - Adam Glustein

Taught by

PyCon US

Reviews

Start your review of Supercharge Your Python Library Using AST Parsing

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.