We’ve all heard “premature optimization is the root of all evil.” In day-to-day Python, the bigger risk is often the reverse: performance problems that quietly ship, then suddenly become user-visible, and now you’re debugging under pressure.
You’ll work in optimization rounds that each start with a tiny technique demo (just enough to give you a toolbox), then move into a sprint where you improve a purposely slow baseline. The goal is to write the most performant version of the code, both in terms of execution speed and memory footprint.
We’ll practice performance skills that transfer directly to production Python:
- Benchmarking you can trust
- Profiling to find the real bottleneck (CPU, memory, I/O)
- Using CPython’s strengths
- Optimization techniques:
- Data representation & memory management
- Vectorization & batching
- Parallelism & concurrency
- Streaming & I/O efficiency
Challenges you’ll optimize:
- Round 1: Shaping Data for Speed
- Round 2: Keeping the CPU Busy
- Final challenge: Bringing it all Together. You will be able to team up and compete against others to create the most efficient solution!
You’ll walk away with sharper instincts, practical techniques, and a better sense of when performance work stops being premature and starts being essential. Along the way, you’ll also build instincts for spotting bottlenecks and gain hands-on experience with the tools that help decide where to optimize.