Media Summary: today I show the tools and processes I used to improve another performance video! today I show you a surprisingly slow part of flake8 that got fixed in 5.0 - pretty profiling: ... today I talk about whether adding type annotations to

How I Sped Up Python By 20ms Intermediate Anthony Explains 417 - Detailed Analysis & Overview

today I show the tools and processes I used to improve another performance video! today I show you a surprisingly slow part of flake8 that got fixed in 5.0 - pretty profiling: ... today I talk about whether adding type annotations to and I actually went a bit further after recording! (it now can reorder all of pre-commit faster than `isort` can import!) - pretty today I talk about how to declare optional dependencies in the packages you're providing as well as how to install optional ... today I answer an interesting question which surprised me -- why is `

today I talk about why dictionary literals (and other literals) are faster than their function-called counterparts - today I show how I tracked down a performance regression, how I fixed it, and ultimately how it made pip way faster! - what is git ... I've found a really cool way to make pure fine I'll make a video about it -- here's my stance on pinning dependencies and why I do what I do in the different scenarios.

Photo Gallery

how I sped up python by 20ms (intermediate) anthony explains #417
how I sped up flake8 by 20% (intermediate) anthony explains #460
is python with types faster? (intermediate) anthony explains #126
how I made my import sorter 7x faster (intermediate) anthony explains #457
python packaging: optional dependencies (intermediate) anthony explains #074
python: why is -c faster than -m? (intermediate) anthony explains #222
python: {...} is faster than dict(...) (intermediate) anthony explains #223
I made pip startup 25% faster (intermediate) anthony explains #427
python's optimization mode is mostly useless (intermediate) anthony explains #523
python variable unpackings (beginner - intermediate) anthony explains #031
from imports aren't faster! (beginner - intermediate) anthony explains #398
pure python windows .exe (no compiler!) (intermediate) anthony explains #107
Sponsored
View Detailed Profile
how I sped up python by 20ms (intermediate) anthony explains #417

how I sped up python by 20ms (intermediate) anthony explains #417

today I show the tools and processes I used to improve

how I sped up flake8 by 20% (intermediate) anthony explains #460

how I sped up flake8 by 20% (intermediate) anthony explains #460

another performance video! today I show you a surprisingly slow part of flake8 that got fixed in 5.0 - pretty profiling: ...

is python with types faster? (intermediate) anthony explains #126

is python with types faster? (intermediate) anthony explains #126

today I talk about whether adding type annotations to

how I made my import sorter 7x faster (intermediate) anthony explains #457

how I made my import sorter 7x faster (intermediate) anthony explains #457

and I actually went a bit further after recording! (it now can reorder all of pre-commit faster than `isort` can import!) - pretty

python packaging: optional dependencies (intermediate) anthony explains #074

python packaging: optional dependencies (intermediate) anthony explains #074

today I talk about how to declare optional dependencies in the packages you're providing as well as how to install optional ...

Sponsored
python: why is -c faster than -m? (intermediate) anthony explains #222

python: why is -c faster than -m? (intermediate) anthony explains #222

today I answer an interesting question which surprised me -- why is `

python: {...} is faster than dict(...) (intermediate) anthony explains #223

python: {...} is faster than dict(...) (intermediate) anthony explains #223

today I talk about why dictionary literals (and other literals) are faster than their function-called counterparts -

I made pip startup 25% faster (intermediate) anthony explains #427

I made pip startup 25% faster (intermediate) anthony explains #427

today I show how I tracked down a performance regression, how I fixed it, and ultimately how it made pip way faster! - what is git ...

python's optimization mode is mostly useless (intermediate) anthony explains #523

python's optimization mode is mostly useless (intermediate) anthony explains #523

today I talk about

python variable unpackings (beginner - intermediate) anthony explains #031

python variable unpackings (beginner - intermediate) anthony explains #031

today I

from imports aren't faster! (beginner - intermediate) anthony explains #398

from imports aren't faster! (beginner - intermediate) anthony explains #398

I often hear the assertion that

pure python windows .exe (no compiler!) (intermediate) anthony explains #107

pure python windows .exe (no compiler!) (intermediate) anthony explains #107

I've found a really cool way to make pure

when should I pin deps: never and always! (intermediate) anthony explains #514

when should I pin deps: never and always! (intermediate) anthony explains #514

fine I'll make a video about it -- here's my stance on pinning dependencies and why I do what I do in the different scenarios.