Skip to content

Modern Approaches to Profiling in Python with Scalene

Notifications You must be signed in to change notification settings

Andesha/sharcnet-scalene

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern Approaches to Profiling in Python with Scalene

Compute Ontario Colloquium - 12pm Wednesday May 3rd, 2023

Python is a language developers choose to write in for convenience rather than speed. However, speed can be recovered by offloading calculations to libraries which leverage lower level languages like NumPy, Cython, and more. Scalene is a high-performance CPU, GPU, and memory profiler which can illustrate where code should be passing calculations to other libraries for significant increases in speed. Scalene also includes support for Jupyter Notebooks, OpenAI suggestions for vectorizing code, as well as a significantly lower overhead and higher accuracy than other profilers. This talk will introduce the concepts required for understanding why external libraries are faster than native Python, interactions with approaches such as Cython and Just-in-Time compilers, as well as a live demonstration of Scalene on the Alliance systems inside of a Jupyter Notebook. Familiarity with Python, virtual environments, and Jupyter notebooks will be assumed.

This repository contains the slides and jupyter notebooks for my webinar.

About

Modern Approaches to Profiling in Python with Scalene

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages