I just started looking into ctypes and was a little curious on how they work. How does it compare speed wise to the regular C implementation? Will using ctypes in a python program speed it up or slow it down is basically what I am wondering. Thanks!
Share
there is no “regular C implementation” in most cases. Python data structures are one to three order of magnitudes higher level.
To answer you question “how fast are ctypes in python?” – the answer is “pretty fast”.
look at numpy for an idea of it.