Media Summary: today I answer an interesting question which surprised me -- why is ` today I talk about whether adding type annotations to today I show the tools and processes I used to improve

Python Is Faster Than Dict Intermediate Anthony Explains 223 - Detailed Analysis & Overview

today I answer an interesting question which surprised me -- why is ` today I talk about whether adding type annotations to today I show the tools and processes I used to improve today I analyze / address an impressive claim -- that cpython's hash can be changed and improve performance drastically! today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ... today I talk about __slots__ and __dict__ and how they relate to objects! playlist: ...

today I show how to easily make classes comparable in today I talk about reference counting and the `weakref` module and some use cases for weak references (and why they're not ... today I show how I went about improving the performance of the tokenize module by 20-30%. first why I noticed it at all to begin ... today I talk about the basics of generator functions and how you'd type annotate them! playlist: ... today I talk about comprehensions (list, set, today I show a technique I use to compare lots of files at once -- and a small trick with `git` to make them prettier! playlist: ...

today I show a common pitfall with `lru_cache` and how it will almost always be a memory leak if used on a method! - what is ...

Photo Gallery

python: {...} is faster than dict(...) (intermediate) anthony explains #223
python: why is -c faster than -m? (intermediate) anthony explains #222
is python with types faster? (intermediate) anthony explains #126
how I sped up python by 20ms (intermediate) anthony explains #417
can cpython be 76% faster by changing hash()? (no) (intermediate) anthony explains #269
python insertion-ordered dicts (beginner - intermediate) anthony explains #212
python typing: object vs Any (intermediate) anthony explains #275
python: what is __slots__ and __dict__ (intermediate) anthony explains #122
python variable unpackings (beginner - intermediate) anthony explains #031
python: easy comparable classes with functools.total_ordering (intermediate) anthony explains #353
python: what is weakref? (intermediate - advanced) anthony explains #366
how I sped up python's tokenize module by 25% (intermediate) anthony explains #221
View Detailed Profile
python: {...} is faster than dict(...) (intermediate) anthony explains #223

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

today I talk about why

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 `

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 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

can cpython be 76% faster by changing hash()? (no) (intermediate) anthony explains #269

can cpython be 76% faster by changing hash()? (no) (intermediate) anthony explains #269

today I analyze / address an impressive claim -- that cpython's hash can be changed and improve performance drastically!

python insertion-ordered dicts (beginner - intermediate) anthony explains #212

python insertion-ordered dicts (beginner - intermediate) anthony explains #212

today I talk about insertion ordered

python typing: object vs Any (intermediate) anthony explains #275

python typing: object vs Any (intermediate) anthony explains #275

today I talk about the difference between object and Any when typing things! - intro to typing / mypy: ...

python: what is __slots__ and __dict__ (intermediate) anthony explains #122

python: what is __slots__ and __dict__ (intermediate) anthony explains #122

today I talk about __slots__ and __dict__ and how they relate to objects! playlist: ...

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

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

today I

python: easy comparable classes with functools.total_ordering (intermediate) anthony explains #353

python: easy comparable classes with functools.total_ordering (intermediate) anthony explains #353

today I show how to easily make classes comparable in

python: what is weakref? (intermediate - advanced) anthony explains #366

python: what is weakref? (intermediate - advanced) anthony explains #366

today I talk about reference counting and the `weakref` module and some use cases for weak references (and why they're not ...

how I sped up python's tokenize module by 25% (intermediate) anthony explains #221

how I sped up python's tokenize module by 25% (intermediate) anthony explains #221

today I show how I went about improving the performance of the tokenize module by 20-30%. first why I noticed it at all to begin ...

the fastest python startup with `python -S` (intermediate) anthony explains #411

the fastest python startup with `python -S` (intermediate) anthony explains #411

today I talk about the absolutely-

Advanced Dictionaries: defaultdict in Python

Advanced Dictionaries: defaultdict in Python

Today we learn about defaultdict and

Python dictionaries are easy 📙

Python dictionaries are easy 📙

python

generator basics (+typing) (beginner - intermediate) anthony explains #077

generator basics (+typing) (beginner - intermediate) anthony explains #077

today I talk about the basics of generator functions and how you'd type annotate them! playlist: ...

python: all about comprehensions! (beginner - intermediate) anthony explains #161

python: all about comprehensions! (beginner - intermediate) anthony explains #161

today I talk about comprehensions (list, set,

pretty recursive diffs! (beginner - intermediate) anthony explains #351

pretty recursive diffs! (beginner - intermediate) anthony explains #351

today I show a technique I use to compare lots of files at once -- and a small trick with `git` to make them prettier! playlist: ...

don't lru_cache methods! (intermediate) anthony explains #382

don't lru_cache methods! (intermediate) anthony explains #382

today I show a common pitfall with `lru_cache` and how it will almost always be a memory leak if used on a method! - what is ...