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

YouTube

Cython to Speed Up Your Python Code

EuroPython Conference via YouTube

Overview

Explore Cython's powerful capabilities for accelerating Python code in this 46-minute EuroPython 2018 conference talk by core developer Stefan Behnel. Discover how to profile Python modules, compile them into fast binary extension modules, and optimize performance using Cython's static type annotations and seamless integration of Python, C, and C++ features. Learn to leverage Cython's ability to translate Python to C/C++ code while applying static optimizations, and understand how to effectively mix high-level Python constructs with low-level C/C++ elements like native data types, pointer arithmetic, and manual memory management. Gain insights into profiling techniques, code optimization strategies, and maintaining compatibility with common development tools while significantly boosting execution speed.

Syllabus

Introduction
Python data ecosystem
Why use Cython
Sine function
Jupiter
Patent
Sign
Petal function
siphon
C code
Object operations
Wrappers
Example
Memory handling
Memory cleaning
Calling external code
Interface
Runtime
Recursive
Flip
longestmatch
Nested loops
Replacing Python integer types
Optimizing code in Cython

Taught by

EuroPython Conference

Reviews

Start your review of Cython to Speed Up Your Python Code

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.