Save 43% on 1 Year of Coursera Plus
PowerBI Data Analyst - Create visualizations and dashboards from scratch
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