How to write fast modules like numpy for python?

Viewed 112

How can we write a massive - fast module for python? I mean how they write a module like numpy that executes heavy pieces of code in python (which is very slow) so fast? Are they using the C/Python API for that matter? Or it's something else?

1 Answers

Extension can be written in C/C++ with connectors to other python objects and functions.

The official python documentation has a C/C++ API reference

Related