Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 569 Bytes

python_modules_in_c.rst

File metadata and controls

12 lines (10 loc) · 569 Bytes

Python Modules in C

We all know that Python can be slow at times. If you are using it to do some resource intensive task then it can be a major bottleneck. What options do we have of making it fast apart from code optimisation? Fortunately Python has a solution for us. It allows us to interface with C code easily and write extensions for critical parts in C. This allows to provide a speed boost to our Python code.

There are already a couple of modules which have been rewritten in C for the sake of speed. They include cPickle, cProfile and c