Performant Python Patterns: Small changes to speed up your Python code

Python is a highly accessible programming language commonly used by researchers, most of whom are not formally trained programmers. It's easy to get software working with Python, and equally as easy to overlook the requirements for your Python code to be performant.This interactive talk presents multiple versions of common Python programming patterns, attendees will have the opportunity to vote (via Wooclap) for which they think is fastest or the expected speedup, before the answer is displayed and explained.Writing performant code is often overlooked but can increase research productivity, improve shared resource availability (e.g. HPC) and reduce energy usage. This talk aims to expose how some small changes to Python code, and using packages such as NumPy and pandas correctly, can lead to big performance improvements. A recording of this session is available on YouTube: https://youtu.be/JeAzyCzFr7U

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2024-12-06
DOI
https://doi.org/10.5281/zenodo.14290316
Primary Topic
Computational Physics and Python Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Performant Python Patterns: Small changes to speed up your Python code

Zenodo (CERN European Organization for Nuclear Research)
Computational Physics and Python Applications
article

Performant Python Patterns: Small changes to speed up your Python code

article en

Abstract

Python is a highly accessible programming language commonly used by researchers, most of whom are not formally trained programmers. It's easy to get software working with Python, and equally as easy to overlook the requirements for your Python code to be performant.This interactive talk presents multiple versions of common Python programming patterns, attendees will have the opportunity to vote (via Wooclap) for which they think is fastest or the expected speedup, before the answer is displayed and explained.Writing performant code is often overlooked but can increase research productivity, improve shared resource availability (e.g. HPC) and reduce energy usage. This talk aims to expose how some small changes to Python code, and using packages such as NumPy and pandas correctly, can lead to big performance improvements. A recording of this session is available on YouTube: https://youtu.be/JeAzyCzFr7U

Zenodo (CERN European Organization for Nuclear Research)
Weatherford College (US)
Decent work and economic growth
Openalex Percentile: Top 59%
Computational Physics and Python Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.