3 ms·
Python is designed to be easily extended with C. If you need performance then write those performance-critical parts in C and write lightweight wrapper to pytho
by zokier 17y ago
Python is designed to be easily extended with C. If you need performance then write those performance-critical parts in C and write lightweight wrapper to python.
- ivan_i 17y agoOr write speed-critical Python iterator directly in C. Python source is the best reference: http://svn.python.org/view/python/trunk/Objects/dictobject.c?view=markup http://svn.python.org/view/python/trunk/Objects/dictobject.c... (look at the end). Python/C API rules.