Sebastian Witowski - Writing Faster Python 3
Strona PyConPL: https://pl.pycon.org FB: http://pl.pycon.org/ Linkedin: / pyco. . Twitter: / pyconpl Did you know that Python preallocates integers from -5 to 257? Reusing them 1000 times, instead of allocating memory for a bigger integer, can save you a couple milliseconds of code’s execution time. If you want to learn more about this kind of optimizations then, … well, probably this presentation is not for you :) Instead of going into such small details, I will talk about more “sane” ideas for writing faster code. After a brief overview of how you can speed up your Python code in general, we will dig into source code optimization. I will show you some simple and fast ways of measuring the execution time of your code, and then we will discuss examples of how to improve some common code structures. You will see: The fastest way of removing duplicates from a list How much faster your code is when you reuse the built-in functions instead of trying to reinvent the wheel What is faster than the “for loop” If the lookup is faster in a list or a set When it’s better to beg for forgiveness than to ask for permission Sebastian Witowski Sebastian is a Python consultant based in Poland. He started his journey with programming as a software developer at CERN, where he fell in love with Python (and teaching). Now he is helping companies untangle their complicated architecture and build all sorts of interesting Python projects. In his spare time, he talks about Python, best practices in programming, and productivity.

Cheuk Ting Ho - Will PyScript replace Django? - What PyScript is and is not

Talk - Anthony Shaw: Write faster Python! Common performance anti patterns

"Python Performance Matters" by Emery Berger (Strange Loop 2022)

CSC372 Group Project - Joshua Carlson & Mustafa Abushwareb

"See CPython run: Getting to know your Python interpreter" - James Bennett (North Bay Python 2019)

James Bennett - A Bit about Bytes: Understanding Python Bytecode - PyCon 2018

Beautiful Python Refactoring II - Conor Hoekstra - code::dive 2022

Talk: Anthony Shaw - Why is Python slow?

When Python Practices Go Wrong - Brandon Rhodes - code::dive 2019

How we are making CPython faster. Past, present and future — Mark Shannon

Modern Dictionaries by Raymond Hettinger

What happens when you import a module? - presented by Reuven M. Lerner

Talk: Conor Hoekstra - Beautiful Python Refactoring

Raymond Hettinger, Keynote on Concurrency, PyBay 2017

Raymond Hettinger: Numerical Marvels Inside Python - Keynote | PyData Tel Aviv 2022

Demystifying Python’s Internals - presented by Sebastiaan Zeeff

Talks - Reuven M. Lerner: Generators, coroutines and nanoservices

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025

Carl Meyer - Type-checked Python in the real world - PyCon 2018

