Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
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