Python: join my optimization workshop in Lisbon, 10th October

Torre de Belém, Lisbon

I’m running a workshop in Lisbon next month, and you’re invited!

It’s a small, in-person, hands-on session on optimizing Python code, with a Django flavour. Here are the details:

Register on Luma

What we’ll do

In my experience, Python projects often have some easy performance improvements waiting to be found, from client projects to large open source projects like Django itself. This workshop is designed to teach you how to find the hot spots worth optimizing, using these three tools in a loop:

  1. Capture a profile with cProfile, Python’s built-in profiler.
  2. Drill into it with profiling-explorer, to find where the time actually goes.
  3. Prove your change worked with tprof, which measures just the functions you care about and can compare before against after.

I’ll teach the loop end-to-end on a real example. Then we’ll spend most of the morning using it for real, and you can pick your target:

We’ll try working in pairs, and at points we can chat as a group to compare notes on what we’ve found.

There’s a break in the middle, with coffee, tea, and pastries provided.

Who it’s for

Intermediate and experienced Python developers. Django experience is helpful, especially if you want to work on Django itself, but it isn’t required. The tools and the loop are plain Python, and the “your own project” track works with any codebase.

You don’t need to have profiled anything before.

What to bring

A laptop, with Git and a recent Python version installed. I’ll send setup instructions to everyone who registers, a week or so beforehand. It only takes a few minutes, but please do it before you arrive, so we can spend the time on the interesting parts.

This is a workshop, not a talk, so we’ll be talking and coding together throughout the session.

Register

Register on Luma

There are only ten places in order to keep the session manageable, so please stick to your registration.

Fin

I hope to see you there.

Optimize all the things!

—Adam


Check out my new book Boost Your GitHub DX.


Subscribe via RSS, Twitter, Mastodon, or email:

One summary email a week, no spam, I pinky promise.

Related posts:

Tags: ,