Skip to main content
New Self-paced AI courses — learn ML, deep learning, and agents on your schedule. Enroll free

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.

  1. Lesson 1 of 6

    12.1 How CPython runs your code

    Enroll to open · 24 min read

  2. Lesson 2 of 6

    12.2 Memory, references and garbage collection

    Enroll to open · 26 min read

  3. Lesson 3 of 6

    12.3 Mutability, copying and common pitfalls

    Enroll to open · 26 min read

  4. Lesson 4 of 6

    12.4 Measuring performance: timeit and profiling

    Enroll to open · 26 min read

  5. Lesson 5 of 6

    12.5 Algorithmic complexity and Big-O

    Enroll to open · 27 min read

  6. Lesson 6 of 6

    12.6 Making Python faster: practical techniques

    Enroll to open · 28 min read

← Back to course