Skip to main content

21 docs tagged with "performance"

View all tags

Async Performance Patterns

asyncio internals, event loop tuning, connection pooling, backpressure, and high-throughput async patterns for production Python services.

Bottleneck Optimizer

Take a deliberately slow codebase and systematically optimize it using profiling.

cProfile and pstats - Function-Level Profiling

Master deterministic profiling with cProfile and pstats - reading profile output, sorting and filtering results, snakeviz visualization, profiling overhead, and real-world endpoint profiling.

CPython in Python 3.13

Free-threaded Python, the specialising adaptive interpreter, immortal objects, sub-interpreters, and what changed in the 3.10–3.13 internals.

Cython and Native Extensions

Static typing in Python with Cython - turning Python bottlenecks into C-speed code without leaving the Python ecosystem.

Indexing and Query Optimization

Understand database indexes from the ground up - B-tree internals, query planning, EXPLAIN ANALYZE, composite indexes, and when indexes hurt performance.

Memory Optimization - Fitting More in Less

Reduce Python memory usage with __slots__, weakref, array module, struct.pack, memory-mapped files, object pooling, and the flyweight pattern for processing millions of records.

Module 04 - Performance Engineering Overview

Master Python performance from measurement to optimization - profiling strategy, caching, memory optimization, vectorization, and C extensions for building high-throughput systems.

Numba JIT Compilation

LLVM-based JIT compilation for Python numerical code - GPU acceleration, parallel loops, and ufunc creation with @jit and @cuda.jit.

Writing Python C Extensions

The Python C API, writing and building a C extension module, PyArg_ParseTuple, error handling, reference counting in C, and CFFI/ctypes alternatives.