New module (written in C) for using the high-precision QD library

Stefan Behnel stefan_ml at
Fri Jul 31 09:26:41 CEST 2015

baruchel at schrieb am 30.07.2015 um 22:09:
> It is written in pure C with the CPython C-API in order to get the highest possible speed.

This is a common fallacy. Cython should still be able to squeeze another
bit of performance out of your wrapper for you. It tends to know the C-API
better than you would think, and it does things for you that you would
never do in C. It also helps in keeping your code safer and easier to maintain.

Your C code seems to be only about 1500 lines, not too late to translate
it. That should save you a couple of hundred lines and at the same time
make it work with Python 3 (which it currently doesn't, from what I see).


More information about the Python-list mailing list