Why Knowing Cython Helps in Understanding Python: A Deep Dive into Cython & PVM

Abhik Sarkar (~abhik4)


3

Votes

Description:

This talk explores the intersection of Python and Cython, emphasizing how understanding Cython can deepen one's knowledge of the Python Virtual Machine (PVM) and Python's performance characteristics.

Attendees will gain insights into the PVM's inner workings, Cython's role in enhancing performance, and practical tips for integrating Cython into their Python projects, especially for machine learning optimization.

Agenda

  1. How Python Works? (5mins)
  2. How Cython Works? Converting Python code to C Code (Generated by Cython) and compiling them separately (10mins)
  • https://github.com/abhiksark/DevFest/tree/main/DevFest22/add Different cases of same function explaining the difference in cython.
  1. Explaining Python Virtual Machine. (5 Mins)
  2. Case Study of NMS (Non Max Suppression) with Cython (5 Mins)
  3. Questions (5Mins)

NOTE: This is extension of talk which i gave 2 years ago in Devfest.

Prerequisites:

Python Knowledge C/C++ is helpful but not required.

Content URLs:

Slides Github

Speaker Info:

Abhik is a Director, Machine Learning Engineer at Cloudastructure, a cloud-based video surveillance platform.

He has worked extensively with Computer Vision Models at scale, which has led him to deeply care about the performance of the code.

Speaker Links:

https://www.abhik.xyz/ https://www.linkedin.com/in/abhiksark

Section: Core Python
Type: Talk
Target Audience: Intermediate
Last Updated: