Python and FastAPI
Module 12 · Python internals and performance
How CPython runs code, memory and references, copying pitfalls, measuring speed, Big-O and making programs faster.
6 lessons
Follow in order
Use the button below to sign in and unlock lessons.
Your path
Lessons in sequence
Work through these in order—each lesson builds on the previous one.
-
Lesson 1 of 6
12.1 How CPython runs your code
-
Lesson 2 of 6
12.2 Memory, references and garbage collection
-
Lesson 3 of 6
12.3 Mutability, copying and common pitfalls
-
Lesson 4 of 6
12.4 Measuring performance: timeit and profiling
-
Lesson 5 of 6
12.5 Algorithmic complexity and Big-O
-
Lesson 6 of 6
12.6 Making Python faster: practical techniques