Agentic Coding · Workshop · Numerical computing

Numerical Python Performance: A Workshop on Profiling, Vectorisation and Numba with Coding Agents

Make slow computing scripts faster where it counts: the profiler shows where time goes, the agent proposes changes, and tests make sure the results stay the same.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Workshop
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–12 participants
Level
Intermediate
Language
German or English

Tools: Claude Code · Python · NumPy · Numba · py-spy

Ask an agent to make code faster and it often optimises the wrong place or quietly changes the result. You improve numerical Python performance more reliably with a fixed loop: measure, rework the most expensive part, check results against the reference, measure again. In this workshop you feed the agent profiler output and benchmarks as feedback, have loops vectorised or compiled with Numba, and learn when memory layout, data types or a better algorithm achieve more than any micro-optimisation.

Who the performance workshop is for

Developers, researchers and data teams who run compute-heavy Python scripts with NumPy and want to cut run times systematically with the help of coding agents.

What you'll walk away with

  • Measure run time with cProfile, line_profiler and py-spy and pinpoint bottlenecks
  • Give the agent profiler output and benchmarks as context and request targeted changes
  • Vectorise loops and control memory layout, copies and data types deliberately
  • Speed up computational kernels with Numba and judge the limits of that approach
  • Keep a reference implementation with tolerance tests so that speed does not come at the cost of correctness

Typical scenarios

  1. A research group speeds up the pairwise distance calculation in a particle simulation after the profiler shows that nearly all the run time is spent in a nested Python loop.
  2. An engineering team shortens an overnight parameter study because the agent removes needless array copies and type conversions, and tests confirm the results are unchanged.
  3. After a benchmark, a data team decides not to compile an image filter with Numba but to switch to a suitable SciPy function instead.

Does this fit your team?

Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.

Request dates

What the performance workshop covers

  1. Measure firstProfilers, benchmarks and reproducible measurement conditions, and why gut feeling misleads on performance.
  2. The agent in the optimisation loopProfiler output as context, one change per step, then tests and a fresh measurement.
  3. Vectorisation and memoryBroadcasting, views instead of copies, contiguous memory and suitable data types.
  4. Compiling with NumbaKernels with njit, typical error messages and cases where Numba gains little.
  5. Algorithm before micro-optimisationComplexity, better methods and existing library routines, which are often the biggest lever.

Before the performance workshop: prerequisites

  • Good Python and NumPy skills
  • A script of your own with noticeable run time, or willingness to work on an example

Materials you keep

  • An optimisation workflow written as instructions for coding agents
  • A benchmark and test template with a reference implementation
  • Your sped-up script with documented measurements

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the performance workshop

How much faster will our code get?

That cannot be stated responsibly in advance. Sometimes a small change is enough; sometimes the bottleneck lies in the algorithm or the volume of data. In the workshop we measure before and after, giving you a solid basis for further decisions.

Do you cover GPUs and parallelisation?

We explain when multiprocessing, GPU libraries or distributed computing make sense and show first steps. The focus is on a single machine, because many bottlenecks can be removed there at manageable risk. Teams working on compute clusters will find a dedicated coaching in the catalogue.

What about Cython or Rust extensions?

Both are powerful options but need extra build steps and skills. In the workshop we discuss when that effort pays off. We practise with NumPy and Numba, because they remove many bottlenecks without changing your toolchain.

Is the workshop held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.