Why is it slow? Strategies for solving performance problems - presented by Caleb Hattingh

  Рет қаралды 3,399

EuroPython Conference

EuroPython Conference

Күн бұрын

EuroPython 2022 - Why is it slow? Strategies for solving performance problems - presented by Caleb Hattingh
[Liffey A on 2022-07-15]
You have a performance problem, and you don't know what to do. All you know is that one of your endpoints or applications is too slow; and perhaps it only affects a certain user or customer. How do you figure out why it's slow, and what can you do to catch performance problems before they hurt users in production?
We'll go through a wide range of strategies for detecting and diagnosing performance problems in typical production workloads. We'll cover both web-based domains as well as backend domains and other analytical applications involving number-crunching and big-data applications.
We'll step through the following high-level strategies:
Tracing: through instrumentation of your code, you will get detailed traces of where the time is spent in generating your web server responses.
Profiling: we'll look at profiling strategies using both the Python built-in cProfile tool, as well as awesome 3rd party libraries like pyspy, including how to use these with pytest
Isolation: how to figure out if performance is affected by CPU, or memory, disk, or network IO limitations.
Reasoning: we'll look at common scenarios that result in performance regressions such as the needless execution of sub-queries in rendering web views, or algorithmic analysis and ""big-O"" notation, or concurrency problems resulting from exhaustion of threads in a pool and asyncio concurrency limitations resulting from overloaded subscription.
Prophylaxis: we'll look at how to include benchmarks within your CI pipeline, including with pytest and other technologies to catch performance regressions ahead of time.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License creativecommons...

Пікірлер
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 324 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 12 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 11 МЛН
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 366 М.
SPy (Static Python) lang: fast as C, Pythonic as Python - Antonio Cuni
44:02
Rust for Data Engineering: Working with Csv files.
1:51:44
Andres Quintero
Рет қаралды 6 М.
Keeping your projects nice and clean - Jan Musílek
28:59
EuroPython Conference
Рет қаралды 427
How to deliver 3x faster with effective API design - Michal Cyprian
29:17
EuroPython Conference
Рет қаралды 781
Soo...what is Nx?
9:29
Nx - Smart Monorepos - Fast CI
Рет қаралды 94 М.
Linux Performance Troubleshooting Demos
10:51
grobelDev
Рет қаралды 71 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 229 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 12 МЛН