from Hacker News

CSipHash: A Fast (C) SipHash Implementation for Python

by zacharyvoase on 9/27/16, 6:58 PM with 1 comments

  • by dalke on 9/27/16, 8:24 PM

    How much of the time for <= 256 bytes is from the overhead of parameter checking?

    That is, I'm tempted to start using cffi for my code, but years ago I remember timing ctypes + Python type checking vs. using a C extension. I remember the latter being noticeably faster, enough to justify the extra time it took to implement the extension.