# Profiling and Performance Tuning

## About

- Level: Intermediate to Advanced
- Lectures: 20 hours
- Self-study: 10 hours
- Exercises: 22
- Lines of code to write: 118
- Format: e-learning + weekly online meeting with the instructor
- Language: English or Polish

## Description

Find out where a Python application spends time and memory before changing its code. Practice benchmarking, CPU and memory profiling, and reading performance reports. Then compare targeted optimizations, including options for concurrency and moving demanding work outside ordinary Python execution.

## Advantages

Replace performance guesses with measurements you can reproduce. Learn to identify worthwhile changes, compare their effects, and explain the costs of different approaches to speed and memory use.

## Target Audience

- Python developers investigating slow or memory-heavy programs.
- Engineers comparing concurrency and optimization options.
- Researchers who need to measure numerical or data-processing workloads.

## Format

Learn through short videos and worked examples, then apply each topic in coding exercises. Automated checks help you test your solutions, and a progress spreadsheet helps you see what to work on next.

Weekly online meetings give you time for questions, code reviews, and working through difficult exercises with the instructor. Downloadable code, exercise templates, and reference notes support your independent practice.

Our trainers prepare the teaching materials from their professional experience. The materials have been developed since 2015, with more than 28,000 automated tests checking the code examples. Training is available in English or Polish.

## Course Outline

1. Introduction:

   - The Faster CPython project
   - Changes in versions 3.11, 3.12, 3.13, 3.14, 3.15, 3.16, ...
   - CPU and memory architecture
   - The concept of latency
   - Code complexity concepts (memory, computational, cyclomatic, cognitive)
2. Optimization:

   - Computational complexity of operations on built-in data types
   - Manual and automatic identification of complex code
   - Load testing
   - Transpiling Python code to C
3. Performance tuning:

   - Techniques for measuring code performance
   - Microbenchmarking and its pitfalls
   - Identifying bottlenecks
   - Results visualization
4. Profiling:

   - CPU profiling
   - Memory profiling
   - Profilers in Python 3.15
5. Introduction to concurrency and parallel processing:

   - GIL – Global Interpreter Lock
   - Multiprocessing
   - Multithreading
   - Asynchronous programming

## Our Experience

AATC trainers have taught software engineering since 2015, delivering more than 11,000 hours of training to over 32,000 students worldwide. The exercises draw on that teaching experience and professional projects.

## Prerequisites

- Intermediate knowledge of Python programming
- Familiarity with using an IDE (e.g., PyCharm, VSCode)
- Familiarity with using version control systems (e.g., Git)

## Setup

- Newest version of Python
- IDE of your choice (e.g., PyCharm, VSCode)
- Git installed and configured
- GitHub account
- Web browser (e.g., Chrome, Firefox, Safari, etc.)

## Apply

If you are interested in taking this course, please contact us at [info@aatc.pl](<mailto:info@aatc.pl>)

## Related Courses

- [Python Basics](<https://aatc.pl/software/python/basics/index.md>)
- [Python Intermediate](<https://aatc.pl/software/python/intermediate/index.md>)
- [Python Advanced](<https://aatc.pl/software/python/advanced/index.md>)
- [Design Patterns](<https://aatc.pl/software/engineering/design-patterns/index.md>)
- [Profiling](<https://aatc.pl/software/engineering/profiling/index.md>)
- [Refactoring](<https://aatc.pl/software/engineering/refactoring/index.md>)
- [Testing](<https://aatc.pl/software/engineering/testing/index.md>)
- [DevOps](<https://aatc.pl/software/engineering/devops/index.md>)
- [Regular Expressions](<https://aatc.pl/software/engineering/regex/index.md>)
- [All Courses](<https://aatc.pl/software/index.md>)

## Date

This course is scheduled on demand. Contact us with your preferred dates and group size so we can check availability and arrange a suitable session.

## Contact

Email [info@aatc.pl](<mailto:info@aatc.pl>) for help with program details, preparation, or booking.

## Apply

To apply, email [info@aatc.pl](<mailto:info@aatc.pl>) with your name, the program you are interested in, and your preferred dates.
