Hands-on: Using C-functions in the heat equation

In this exercise we utilize C-functions in the heat equation solver.

Continue with the code located under cython/heat-equation.

Reduce the function call overheads by defining proper functions as C-functions. Investigate the effect on performance. You can use applications own timers and/or timeit.

Are some functions more critical to performance than others?

Share this article:

This article is from the free online course:

Python in High Performance Computing

Partnership for Advanced Computing in Europe (PRACE)