Skip main navigation

Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. T&Cs apply

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

In this exercise we continue optimising heat equation solver by utilising C-functions.
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?

© CC-BY-NC-SA 4.0 by CSC - IT Center for Science
This article is from the free online

Python in High Performance Computing

Created by
FutureLearn - Learning For Life