ifduyue / python-xxhash

Python Binding for xxHash

Home Page:https://pypi.org/project/xxhash/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CFFI advantages

davidt99 opened this issue · comments

It's a question rather than an issue.
Is CFFI faster than cpython version? If not, what are the advantages of using CFFI version?

Hello,

CFFI variant is for PyPy, http://pypy.org/compat.html says PyPy has alpha/beta-level support for the CPython C API, however, this feature is not yet complete. We strongly advise use of CFFI instead. CFFI come builtin with PyPy.

However, I haven't benchmark it, maybe it's faster, maybe not.

Relating issue #10

Thanks for the info